This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Starting Address
- From: Ben Elliston <bje at redhat dot com>
- To: Mahesh Patil <mahesh at cdachw dot ernet dot in>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 02 Dec 2002 08:49:49 +1100
- Subject: Re: Starting Address
- References: <Pine.LNX.4.33.0211051516500.28731-100000@cdachw.ernet.in>
>>>>> "Mahesh" == Mahesh Patil <mahesh@cdachw.ernet.in> writes:
Mahesh> I am using arm-elf-gcc for my ARM target. After Compiling &
Mahesh> Linking the output file starts from location 0x00000000 by
Mahesh> default but I want it to be at 0x08028000 while debugging on
Mahesh> Remote ARM Target. How can i mention this option of
Mahesh> starting Address of my code.
You need to use the -Wl option to pass options down to the linker.
Refer to the GNU ld documentation for more info on how to tweak the
starting address.
Ben