Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Problem in generating position independent code with out TEXTREL
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
17 replies
Subscribers
126 subscribers
Views
10523 views
Users
0 members are here
Related
Problem in generating position independent code with out TEXTREL
Offline
Darisi V SATISH BABU
over 7 years ago
Note: This was originally posted on 12th August 2010 at http://forums.arm.com
Hi Experts,
Issue:Not able to remove TEXTREL from our static library generated with --apcs /fpic option using armcc(RVCT 4.0 build 771 tool chain)
Description:
We compiled our codebase(some modules with handwritten assembly) using armcc(RVCT 4.0 build 771 tool chain) to get static libraries, and then these are used by gstreamer module which further compiles using the above generated libraries with wrappers using GCC tool chain and creates shared objects(.so).
Even though we use equivalent --apcs /fpic compile time option during static library creation to remove position independent code, the TEXTREL are not going from library.
When we disable the (handwritten assembly) in the above mentioned codebase, TEXTRELs go away.
As there are lot of handwritten ARM assembly functions,its difficult to enable one by one and compile and check.
So,Experts please throw some light on this issue.
Thanks In Advance,
satish
Parents
Offline
Scott Douglass
over 7 years ago
Note: This was originally posted on 6th January 2011 at
http://forums.arm.com
Sorry, I didn't realize you were using --no_hide_all. If you're accessing non-hidden symbols then things are more complicated -- more complicated than I understand. You have to use the GOT (Global Object Table).
The 'RELOC 96, table_1' is "manually" generating an R_ARM_GOT_PREL relocation at the previous line. See
http://infocenter.ar...b/CIADEEEC.html
for a description of the RELOC directive.
Just adding the RELOC 96 to my embedded asm example is not going to work -- notice how the compiler is using the 'LDR rx, [pc, rx]' (and a different offset in the DCD) instead of 'ADD rx, pc, rx'.
Details of R_ARM_GOT_PREL are in the BPABI document
http://infocenter.ar...037b/index.html
.
Good luck.
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Scott Douglass
over 7 years ago
Note: This was originally posted on 6th January 2011 at
http://forums.arm.com
Sorry, I didn't realize you were using --no_hide_all. If you're accessing non-hidden symbols then things are more complicated -- more complicated than I understand. You have to use the GOT (Global Object Table).
The 'RELOC 96, table_1' is "manually" generating an R_ARM_GOT_PREL relocation at the previous line. See
http://infocenter.ar...b/CIADEEEC.html
for a description of the RELOC directive.
Just adding the RELOC 96 to my embedded asm example is not going to work -- notice how the compiler is using the 'LDR rx, [pc, rx]' (and a different offset in the DCD) instead of 'ADD rx, pc, rx'.
Details of R_ARM_GOT_PREL are in the BPABI document
http://infocenter.ar...037b/index.html
.
Good luck.
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
ARM development studio with ARM Juno r2 board
0
Juno Arm Development Platform
Arm Development Studio
Products
Arm Support
9042
views
2
replies
Latest
5 months ago
by
Ronan Synnott
Answered
"Unable to execute remote query (response code 503) " issue
0
8678
views
1
reply
Latest
5 months ago
by
Ronan Synnott
Answered
Where can I download DS-5 hardware firmware??
+1
8119
views
1
reply
Latest
5 months ago
by
Ronan Synnott
Not Answered
freeRTOS demo DS-5 ERROR(CMD360) when trying to debug
+1
13418
views
12
replies
Latest
6 months ago
by
tolc
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
9069
views
1
reply
Latest
6 months ago
by
Jonathan Simmonds
<
>
View all questions in Arm Development Studio forum