| View previous topic :: View next topic |
| Author |
Message |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Thu Apr 29, 2004 4:38 am Post subject: Smaller elf headers with gcc? |
|
|
Does anyone know of a way to make GCC ouput an elf with a smaller elf header?
Cheers,
Raizor |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Thu Apr 29, 2004 5:01 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Thu Apr 29, 2004 5:04 am Post subject: |
|
|
Thanks MrBrown. I'll check with Tyranid.
raizor |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Thu Apr 29, 2004 7:29 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Thu Apr 29, 2004 9:43 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|