Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Problem encountered during Linking
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
4737 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 encountered during Linking
Abhinav Varma
over 12 years ago
Note: This was originally posted on 23rd August 2010 at
http://forums.arm.com
Hey all,
I have been trying to migrate a Codesourcery compatible code to armcc compatible code. I have been able to compile source files (both .c and .S files) using armcc. So, I have these .o object files with me and a linker script (which was already written and is compatible with Codesourcery). I need to link all my .o object files to generate the .exe executable.
I had read few documents which suggested me to use --translate_gld with armcc. So, I used the command :-
armcc --translate_gld -static --gc-sections -no-warn-mismatch -T LINKER.lds -o EXECUTABLE.exe file1.o file2.o
and got the following error:-
Fatal error: L3900U: Unrecognized option '--linker_script'.
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
The original arm-none-eabi-ld command was :-
arm-none-eabi-ld --gc-sections -no-warn-mismatch -T LINKER.lds -o EXECUTABLE.exe file1.o file2.o
Please suggest me how to carry out the linking. Do I need to change the linker script? or am I missing out some command line options.
Thanks and Regards
Abhinav Varma
Parents
Scott Douglass
over 12 years ago
Note: This was originally posted on 25th August 2010 at
http://forums.arm.com
and got the following error:-
Fatal error: L3900U: Unrecognized option '--linker_script'.
I wonder if your armink might be out-of-date compared with your armcc. What is the output of
armcc --vsn
armlink --vsn
?
It might also be worth checking if there is is more than one armlink to be found on PATH.
Cancel
Vote up
0
Vote down
Cancel
Reply
Scott Douglass
over 12 years ago
Note: This was originally posted on 25th August 2010 at
http://forums.arm.com
and got the following error:-
Fatal error: L3900U: Unrecognized option '--linker_script'.
I wonder if your armink might be out-of-date compared with your armcc. What is the output of
armcc --vsn
armlink --vsn
?
It might also be worth checking if there is is more than one armlink to be found on PATH.
Cancel
Vote up
0
Vote down
Cancel
Children
No data