lkml.org 
[lkml]   [1996]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ELF - are .comment and .note sections needed? Inline syscalls?
From: Tom Zerucha <root@deimos.ceddec.com>

> I was experimenting to see how small I could make an executable, and found
> that readelf showed .comment and .note sections in the code. It would
> sometimes show others too. Are they used for any purpose? strip won't
> remove them unless you specifically say --remove-section= for each one you
> want to remove.
[...]

I usually delete all .note and .comment sections from installed
binaries (including shared libraries) and I didn't have any problems
yet. It just saves me a couple of MBytes :)

You could also strip off the symbol table of your shared libraries - if
there weren't some braindead software configuration scripts out there
that read it in order to find out which functions are present...

Michael.
--
Michael "Tired" Riepe <riepe@ifwsn4.ifw.uni-hannover.de>
"Beware the storm that gathers here!" (The Prophet's Song)

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.019 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site