[plug] shared libraries that don't / aren't

conon troll at arach.net.au
Tue Aug 15 22:07:46 WST 2006


On Tuesday 15 August 2006 16:49, Denis Brown wrote:
> At 04:27 PM 14/08/2006, conon wrote:
> >On Monday 14 August 2006 15:48, Denis Brown wrote:
> > > At 03:26 PM 14/08/2006, W.Kenworthy wrote:
> > > >Using LDPRELOAD on the actual library help?
> 
> <snip>
> 
> >Have you used ldd on the library to confirm that it is indeed
> >a shared library.
> 
> Hmmm... how do you mean?   New territory for me.   Have always assumed that 
> .so's were shared libraries.
An example - libncurses.so -

#ldd /usr/lib/libncurses.so
        libc.so.6 => /lib/libc.so.6 (0x40068000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

libncurses.a -

#ldd /usr/lib/libncurses.a
ldd: warning: you do not have execution permission for `/usr/lib/libncurses.a'
        not a dynamic executable

If a library has been linked wrong then it wont react right.

The first is a dynamic library - the second isnt.

-- 
regs conon
_______________________
\                      \
 \   OOHH I hate TYPOS  \
  \                      \
   ~~~~~~~~~~~~~~~~~~~~~~~~



More information about the plug mailing list