Page 1 of 1

Smaller elf headers with gcc?

Posted: Thu Apr 29, 2004 4:38 am
by Raizor
Does anyone know of a way to make GCC ouput an elf with a smaller elf header?

Cheers,

Raizor

Posted: Thu Apr 29, 2004 5:01 am
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.

Posted: Thu Apr 29, 2004 5:04 am
by Raizor
Thanks MrBrown. I'll check with Tyranid.

raizor

Posted: Thu Apr 29, 2004 7:29 am
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.

Posted: Thu Apr 29, 2004 9:43 am
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