Load address

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
-PIMs-
Posts: 5
Joined: Sat Dec 16, 2006 7:29 am

Load address

Post by -PIMs- »

Other than modifying the link file, what other ways are there to change where your program loads?
User avatar
jbit
Site Admin
Posts: 293
Joined: Sat May 28, 2005 3:11 am
Location: København, Danmark
Contact:

Post 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
-PIMs-
Posts: 5
Joined: Sat Dec 16, 2006 7:29 am

Post 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.
Post Reply