[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[4]: Doing Stupid things?!



Peter Lorand Peres <plp@actcom.co.il> wrote:
>  Are you sure ? I think I remember that ELF linking resolves by name, and
>  those are symbols, no ?

$ldd /usr/bin/file
        libc.so.5 => /lib/libc.so.5 (0x4000b000)
$file /lib/libc.so.5
/lib/libc.so.5: symbolic link to libc.so.5.4.23
$file /lib/libc.so.5.4.23
/lib/libc.so.5.4.23: ELF 32-bit LSB shared object, Intel 386, version 1,
stripped

Do you see the word "stripped"? Do you see the `file' linked against the
_stripped_ library and nevertheless does work?

Evgeny

>  On Tue, 2 Dec 1997, Evgeny Stambulchik wrote:
>  
>  > Eli Marmor <marmor@elmar.co.il> wrote:
>  > >  It is forbidden to strip shared libraries
>  > 
>  > It's incorrect, at least for Linux/ELF. I do it all the time. Did you mean
>  "it
>  > is forbidden to strip shared libraries _currently_ being used by a
>  process"?
>  > Since libc is used by init (I concern here the original poster), it was
>  fatal
>  > :-)


--
   ____________________________________________________________
  / 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 >=====================================+  | 
 |______________________________________________________________|