Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.
Moderators: cheriff , Herben
Raizor
Posts: 60 Joined: Sun Jan 18, 2004 12:27 am
Location: out there
Post
by Raizor » Thu Apr 29, 2004 4:38 am
Does anyone know of a way to make GCC ouput an elf with a smaller elf header?
Cheers,
Raizor
mrbrown
Site Admin
Posts: 1537 Joined: Sat Jan 17, 2004 11:24 am
Post
by mrbrown » Thu Apr 29, 2004 5:01 am
It's a side effect of the R5900 ELF specification in the linker, and I don't know of any way to remove the bloated ELF header using binutils. A while back Tyranid wrote a small utility that stripped that header and made the ELF smaller in other areas - you might want to check with him on that.
Raizor
Posts: 60 Joined: Sun Jan 18, 2004 12:27 am
Location: out there
Post
by Raizor » Thu Apr 29, 2004 5:04 am
Thanks MrBrown. I'll check with Tyranid.
raizor
blackdroid
Posts: 564 Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:
Post
by blackdroid » Thu Apr 29, 2004 7:29 am
As far as I remember it was Sasq who wrote that elf-chopper, dont have an url handy but i'll ask him whenever I see/meet him again.
Kung VU
Raizor
Posts: 60 Joined: Sun Jan 18, 2004 12:27 am
Location: out there
Post
by Raizor » Thu Apr 29, 2004 9:43 am
It's no biggie. Should be just a case of shortening header padding, updating tables and killing anything that isn't a program header....
Was just looking for a quick (lazy) fix tbh :)
Thanks,
raizor