forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wanted: A Working ELF2IRX.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sun Jan 18, 2004 8:15 am    Post subject: Wanted: A Working ELF2IRX. Reply with quote

So, what would be involved in making this happen? I know next to nothing about how an IRX file works or I'd just tackle it myself...
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sun Jan 18, 2004 4:42 pm    Post subject: Reply with quote

You could always check out the buildsystem for ps2drv devices.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Mon Jan 19, 2004 9:31 am    Post subject: Reply with quote

There's a rundown on the IRX file format somewhere I think in the Documents section of ps2dev.org. All it is is a relocatable ELF with an extra section that Sony uses.

If you go to freshmeat.net, there are a ton of ELF manipulation libraries and such that make it extremely easy to open an ELF file, add a few sections or scan through others, and write out the resulting ELF file. This is pretty much what you'd be doing with elf2irx, so you should check one out. I think the one I was looking at is called libelf or libmelf or something.

As we can see from the current elf2irx source, doing ELF parsing yourself is very errorprone :P.

-This was me, mrbrown.
Back to top
nosense
Guest





PostPosted: Tue Jan 27, 2004 10:31 am    Post subject: elf2irx Reply with quote

So, why is elf2irx needed if the compiler can spit out irx's all on it's own??
Back to top
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Jan 27, 2004 11:38 am    Post subject: Re: elf2irx Reply with quote

nosense wrote:
So, why is elf2irx needed if the compiler can spit out irx's all on it's own??


There are many compilers capable of generating ELFs for MIPS R3000. The only set that can generate the IRX format that the IOP expects are Binutils 2.9 and GCC 2.8.1 - these are the versions Karmix patched to generate IRXs.

elf2irx is needed for any other GCC/binutils that isn't patched. Getting the newer compilers patched is a work-in-progress.

Little known fact: If your tools can generate ECOFF, you can use those instead of IRXs on the IOP :P. You can even set your ECOFFS to load at an absolute address.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group