load address

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

Moderators: cheriff, Herben

Post Reply
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

load address

Post by radad »

How do you set the load address of the elf I build?

I need it to be out of the way so that I can load and run other elfs.
boomint
Posts: 80
Joined: Tue Apr 13, 2004 2:21 am
Location: Sheffield, UK

Post by boomint »

You need to specify the address using a linker script, or by passing the address through to ld using the -Ttext option in your makefiles EE_LDFLAGS.

See the ps2link makefile in cvs for an example of this:

http://cvs.ps2dev.org/ps2link/ee/Makefile
--( someone stole my sig! )--
Post Reply