irx in elf question

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

Moderators: cheriff, Herben

Post Reply
clement
Posts: 9
Joined: Tue Jul 13, 2004 1:42 am

irx in elf question

Post by clement »

I have read loader.c and ps2menu.c.
I wanted to know how and when did the irx-address pointers (e.g. extern u8 *poweroff_irx;) and irx-size variables (e.g. extern int size_poweroff_irx;) have their values assigned as that the source only show the declaration and I don't think SifExecModuleBuffer function is supposed to be called with unassigned variables.
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

the key here is 'extern' and its just a reference, ps2menu's makefile bin2s libpoweroff.irx so I bet the defines is in that output.
Kung VU
Post Reply