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

Re: libraries have no symbols



> 
> On Sat, Sep 19, 1998 at 05:31:31PM +0200, jdassen@wi.leidenuniv.nl wrote:
> > On Sun, Sep 20, 1998 at 01:14:30AM +1000, Hamish Moffatt wrote:
> > > Why do the system libraries not have symbols?
> > 
> > They do have some symbols in them. Try e.g. 
> > nm --dynamic --defined-only /lib/libc.so.6
> 
> Hmmm, okay. So why doesn't gdb use them? Is that only my system,
> or everyone's?

I think this is normal.  I believe the dynamic libraries are stripped
to keep them small.  If you need the symbols in the library for
debuggging, you can link your executable statically.  The static
libraries are not stripped.

HTH,
Eric

-- 
 E.L. Meijer (tgakem@chem.tue.nl)          | tel. office +31 40 2472189
 Eindhoven Univ. of Technology             | tel. lab.   +31 40 2475032
 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax    +31 40 2455054


Reply to: