How can i completely strip my binary

Programming, for all ages and all languages.
Post Reply
cycl0ne
Posts: 22
Joined: Tue Sep 02, 2008 11:17 am

How can i completely strip my binary

Post by cycl0ne »

Hi,

I have a question, i compiled some code and after I link them and "strip" the file with strip --strip-all i still see in the binary following:

Code: Select all

GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3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) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 3.4.4GCC: (GNU) 
Ho can i get rid of those?
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: How can i completely strip my binary

Post by JohnnyTheDon »

Where in the file is it? It may just be filler.
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: How can i completely strip my binary

Post by Craze Frog »

GCC is silly. If it's just filler it should be filled with equal bytes to allow for proper compression.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: How can i completely strip my binary

Post by Combuster »

Could you at least tell us in what section (name) of the executable you found that data?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: How can i completely strip my binary

Post by Troy Martin »

This be an old topic, the OP only had one post, so he/she probably doesn't come around anymore.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: How can i completely strip my binary

Post by Combuster »

*caught unaware by necromancer* ](*,)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: How can i completely strip my binary

Post by Troy Martin »

Just goes to show you it happens to everyone! :mrgreen:
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: How can i completely strip my binary

Post by JohnnyTheDon »

Oh, sorry. Probably should check the date of the post before I answer it. I've been replying to dead posts quite a bit lately...
Post Reply