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 

Smaller elf headers with gcc?

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



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Thu Apr 29, 2004 4:38 am    Post subject: Smaller elf headers with gcc? Reply with quote

Does anyone know of a way to make GCC ouput an elf with a smaller elf header?

Cheers,

Raizor
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Apr 29, 2004 5:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Thu Apr 29, 2004 5:04 am    Post subject: Reply with quote

Thanks MrBrown. I'll check with Tyranid.

raizor
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Thu Apr 29, 2004 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Thu Apr 29, 2004 9:43 am    Post subject: Reply with quote

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