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
Darisi V SATISH BABU
over 7 years ago
Note: This was originally posted on 3rd January 2011 at
http://forums.arm.com
Hi Experts,
I was able te resolve the TEXTREL issues(by avoiding functions calls using LDR and DCD/DCW...for data) in some code bases with the solutions provided by Scott & others............
Now i am working on some other code base where i am facing TEXTREL issues due to access of tables.
Please go through the below mentioned sample program which replicates my issues.........
short int table[30] = {1,2,3,4,5,.......,30};
void foo {
...
LDR r0,=foo
or
DCD foo
...
}
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Darisi V SATISH BABU
over 7 years ago
Note: This was originally posted on 3rd January 2011 at
http://forums.arm.com
Hi Experts,
I was able te resolve the TEXTREL issues(by avoiding functions calls using LDR and DCD/DCW...for data) in some code bases with the solutions provided by Scott & others............
Now i am working on some other code base where i am facing TEXTREL issues due to access of tables.
Please go through the below mentioned sample program which replicates my issues.........
short int table[30] = {1,2,3,4,5,.......,30};
void foo {
...
LDR r0,=foo
or
DCD foo
...
}
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
Answered
Failed to read contents of Internal RAM L1-I_DATA in ARM DS
0
Arm Development Studio
Cache
Debug and Trace Services Layer (DTSL)
13457
views
23
replies
Latest
4 months ago
by
Boon Khai
Answered
DS-5 connect fail when cortex-r5 is in lock-step mode
+1
11225
views
10
replies
Latest
5 months ago
by
Stuart Hirons
Answered
On Cortex-M4F microcontrollers: is fixed point math faster or floating point?
+1
10775
views
10
replies
Latest
5 months ago
by
Ronan Synnott
Answered
Debugging kernel: OS support not working for Linux 5.4
+1
Kernel Developers
External Hardware Debug
Debugger
9649
views
5
replies
Latest
5 months ago
by
sgoldschmidt
Answered
DS-5 bare metal wait error after run "debug"
+1
DS-5 Development Studio
Debugging
Arm Compiler 5
Memory
32544
views
14
replies
Latest
5 months ago
by
prasadghole
<
>
View all questions in Arm Development Studio forum