Starting Address

Ben Elliston bje@redhat.com
Sun Dec 1 13:50:00 GMT 2002


>>>>> "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



More information about the Gcc-help mailing list