[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [arm-gnu] arm-none-elf-ld start address question
- To: bob <bobself@xxxxxxxxxxx>
- Subject: Re: [arm-gnu] arm-none-elf-ld start address question
- From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
- Date: Fri, 12 Nov 2004 08:14:49 -0800
bob wrote:
arm-none-elf-as --gdwarf-2 --warn -mcpu=arm7tdmi -gstabs -o test.o test.s
arm-none-elf-ld -e 0x100 -Map test.map --cref -o test.elf test.o
arm-none-elf-objcopy -O binary test.elf test.bin
arm-none-elf-objdump -D test.elf >test.lst
I'm trying this to get code to reside in a eb40a board at 0x100, but the
listing file shows that it is at 0x8000. How can I get it to be origined
at 0x100?
The simplest approach is to add "-Ttext 100" to the command-line.
That will put the text segment at 0x100. If you need to do more
complicated things, you will need to write a "linker script".
--
Mark Mitchell
CodeSourcery, LLC
mark@xxxxxxxxxxxxxxxx
|