Smaller elf headers with gcc?

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

Moderators: cheriff, Herben

Post Reply
Raizor
Posts: 60
Joined: Sun Jan 18, 2004 12:27 am
Location: out there

Smaller elf headers with gcc?

Post by Raizor »

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 »

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 »

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 »

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 »

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