Hi All
Here is my linker script:
ENTRY (int0_isr)
OUTPUT_FORMAT(binary
SECTIONS
{
. = 0x500000;
.interrupt0.o : { interrupt0.o(*) }
. = 0x1200000;
.newlib : { newlib.a (*) }
}
The ld linker is very clever, it will detect which function have been used in interrupt.o of newlib.a, and then the ld will put those functions into the output file. For the functions of newlib.a which have been used in interrupt0.o, it will not be included in the output file. How can i stop this behavior? I want to include the whole newlib.a into the output file whatever the function is used or not.
You can see the output format is flat binary, if i want to delete every bytes in the output file, which is from newlib.a, how to? I want to do this because i only want to reference the function from newlib.a but not including them into the output format
thanks
from Peter ([email protected])
clever linker sciprt - but i don't want it
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact: