Load address
Load address
Other than modifying the link file, what other ways are there to change where your program loads?
Just specify it in your LDFLAGS:
If you're using gcc/g++ to link you'll need to do something like
Hope this helps
Code: Select all
-Ttext 0x12340
Code: Select all
-Wl,-Ttext -Wl,0x12340
Yes, thankyou. I wasn't looking for any specific way so any possible ways of doing it are helpful to me.jbit wrote:Just specify it in your LDFLAGS:If you're using gcc/g++ to link you'll need to do something likeCode: Select all
-Ttext 0x12340
Hope this helpsCode: Select all
-Wl,-Ttext -Wl,0x12340