What is gcc -s option?

Bill's LFS Login lfsbill at wlmcs.com
Thu Jan 9 15:40:30 PST 2003


On Thu, 9 Jan 2003, Bill's LFS Login wrote:

> On Fri, 10 Jan 2003, Dan Osterrath wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > > <snip>

> Semantics, semantics. Do an nm on a copy of an executable, appropriately I
> use a copy of /usr/bin/strip in /tmp, and you get this... (partial)
>
> 08061d70 t ieee_variable
> <snip>

> The I did strip --strip-all and got 'nm: /tmp/strip: no symbols'.
>
> and file /tmp/strip gives
>
> /tmp/strip: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
> GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped
>
> This leads me to believe that there is a "reference" that is not the same
> as a "symbol". Because strip is dynamic, and its symbols have been removed
> and it can still execute and reference needed shared object "symbols" and
> successfully execute.

Almost forgot,

file /tmp/strip gives

/tmp/strip: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped

meaning the "references" are still there. Maybe this indicates that
"symbols" are not technically the same as what I'm now calling references?

>
> I wish I had the guts <snip>

Bill Maltby
lfsbill at wlmcs.com

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list