linker strange behavior
Hello,
I am trying to build bare metal project for SAM4s. Calling linker with arm-none-eabi-gcc and arm-none-eabi-ld produces different results when objdump is called.
The command for the linker which i use:
/usr/bin/
-T../..
-L/usr/
-lstdc++ -lsupc++ -lm -lc -lg -lnosys -lstdc++ -lsupc++ -lm -lc -lg -lnosys
/usr/bin/
objdump generate only:
<deregister_
<register_
<__do_global_
<frame_dummy>:
<atexit>:
<__libc_
<__register_
<register_fini>:
<_global_
<_init>:
<__init_
<__frame_
<__fini_
I don't see main and other functions that I am using.
When calling linker directly
/usr/bin/
-o proba.elf system_sam4s.o main.o proba.o
objdump generates assembly which contains all used functions.
I have tried different options but still i cannot get to work when calling
arm-none-eabi-gcc. I have tried arm-none-eabi-gcc versions 4.9.3 and 5.4.1. Operating system is Ubuntu 15.10.
What am I doing wrong?
Regards
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: