[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re[6]: Doing Stupid things?!
S..t, my memories of ld.so innards are 1 year old... I have to take it
apart again. But I was sure that ELF resolves by name, otherwise libcs
couldn't be changed so easily. It is possible that the name is stored as a
hash key...
On Tue, 2 Dec 1997, Evgeny Stambulchik wrote:
> Peter Lorand Peres <plp@actcom.co.il> wrote:
> > I think I meant strip -all or other such things. If you really want to see
> > if it's stripped of publics, try less libc.so.5 and then /printf. What you
> > say is, that the object can be stripped safely with the *standard* options
> > of the command, yes ?
>
> $nm /lib/libc.so.5.4.23
> /lib/libc.so.5: no symbols
>
> OK, to make you believe :)
>
> $mkdir lib
> $cd lib
> $cp /lib/libc.so.5.4.23 .
> $strip --strip-all libc.so.5.4.23
> $/sbin/ldconfig .
> $setenv LD_LIBRARY_PATH .
> $ldd /bin/ls
> libc.so.5 => ./libc.so.5 (0x4000b000)
> $ls
> libc.so.5@ libc.so.5.4.23*
>
> ...Oops, just received Eli's message about "nm --dynamic". Of course, this
> gives the whole list of exported symbols.
>
> Evgeny
>
>
> --
> ____________________________________________________________
> / Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il> \
> / Plasma Laboratory, Weizmann Institute of Science, Israel \ \
> | Phone : (972)8-934-3610 == | == FAX : (972)8-934-3491 | |
> | URL : http://plasma-gate.weizmann.ac.il/~fnevgeny/ | |
> | Finger for PGP key >=====================================+ |
> |______________________________________________________________|
>
Peter Lorand Peres
------------------
plp@actcom.co.il 100310.2360 on CIS (please use Internet address for mail)
http://ourworld.compuserve.com/homepages/plp
"The creed of Inland Revenue is simple: 'If we can bring one little smile to one
little face today - then somebody's screwed up somewhere' - David Frost
(Note: The above stands valid in all countries until proven wrong)