This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: strip makes libs unusable
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: strip makes libs unusable
- From: Joseph Fago <cfago at tconl dot com>
- Date: Sat, 02 Oct 1999 22:02:49 +0000
- References: <40D90446A164D311B0F800508B44E1823CBEF0@exchphx01.microtest.com> <37F3D128.23007CD3@tconl.com> <jewvt7i3d1.fsf@hawking.suse.de>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Andreas Schwab wrote:
>
> Joseph Fago <cfago@tconl.com> writes:
>
> |> what library to link with? Which one is it in? You could have run 'nm'
> |> to find out... but wait, all the symbols are gone.
>
> What are you talking about? The dynamic symbol table is still there.
Well, we've opened quite a smelly can of worms here...
Have you noticed that [strip] --strip-all, --strip-debug, and --strip-unneeded
have exactly the same results? This has not always been the case, nor does
that Fine Manual indicate that it should be. --strip-all really did, at one
time, strip ALL (the default) and 'nm -D' was useless, as well as the libs.
Since you are (assumption) a primary binutils maintainer, perhaps you could
enlighten
us as to when this behavior was changed. Since those of us who have been
burned in the past retain a cautious approach. I've browsed through the
Changelogs,
and although I have seen references to objcopy, I have yet to narrow down which
one actually changed this functionality.
>
> |> nm shows:
> |> nm ./libext2fs.so.2
> |> ./libext2fs.so.2: no symbols
>
> RTFM. nm -D lists the dynamic symbols.
Not my version of binutils... see if you can guess which one I'm using.
This shouldn't be too hard for you since, again, you have an active role in
bugtracking and fixes for the last several releases. Keep in mind that
this may or may not be (or have been) a bug.
RTFThread -- already mentioned ala Gaël Quéri. The point is nm alone reports
no symbols, and this happens to break some (portable) tools for locating
them.
Allow me to summarize:
--strip-unneeded as opposed to what? strip the needed symbols? would the
lib be usable? Mine aren't, and you can 'nm -D' all day long -- unless
you stripped libbfd... where are those distribution disks? Thus the
'Subject:' field of this thread.