This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Starting Address


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]