Page 1 of 1

Load address

Posted: Sun Feb 04, 2007 3:38 am
by -PIMs-
Other than modifying the link file, what other ways are there to change where your program loads?

Posted: Sun Feb 04, 2007 4:45 am
by jbit
Just specify it in your LDFLAGS:

Code: Select all

-Ttext 0x12340
If you're using gcc/g++ to link you'll need to do something like

Code: Select all

-Wl,-Ttext -Wl,0x12340
Hope this helps

Posted: Sun Feb 04, 2007 5:50 am
by -PIMs-
jbit wrote:Just specify it in your LDFLAGS:

Code: Select all

-Ttext 0x12340
If you're using gcc/g++ to link you'll need to do something like

Code: Select all

-Wl,-Ttext -Wl,0x12340
Hope this helps
Yes, thankyou. I wasn't looking for any specific way so any possible ways of doing it are helpful to me.