Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Problem in generating position independent code with out TEXTREL
Jump...
Cancel
Locked
Locked
Replies
17 replies
Subscribers
119 subscribers
Views
16093 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Problem in generating position independent code with out TEXTREL
Darisi V SATISH BABU
over 12 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
Darisi V SATISH BABU
over 12 years ago
Note: This was originally posted on 4th January 2011 at
http://forums.arm.com
Hi Scott,
You are right....its embedded assembly.....Its not inline assembly.
What is the solution for such scenarios?
Is manual addition of code for PC-relative relocation is the only solution?
If so,is this solution recomended?
If so, can you please specify me the process to write this piece of PC-relative relocation code with an example.
Thanks In Advance,
satish
[font="Arial"][size="2"][/size][/font]
Cancel
Vote up
0
Vote down
Cancel
Reply
Darisi V SATISH BABU
over 12 years ago
Note: This was originally posted on 4th January 2011 at
http://forums.arm.com
Hi Scott,
You are right....its embedded assembly.....Its not inline assembly.
What is the solution for such scenarios?
Is manual addition of code for PC-relative relocation is the only solution?
If so,is this solution recomended?
If so, can you please specify me the process to write this piece of PC-relative relocation code with an example.
Thanks In Advance,
satish
[font="Arial"][size="2"][/size][/font]
Cancel
Vote up
0
Vote down
Cancel
Children
No data