This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about what BFD can access


On Thu, Jul 27, 2006 at 10:23:38PM -0400, Chris Ross wrote:
>   So, gcc is magically finding the executable on disk?  Odd.  How?  If
> I can do the same magic, that might help me as much...

The normal method on Linux is /proc/PID/exe.  There's other ways on
other platforms.

> >You can pull the dynamic symbol table out of memory mapped BFDs
> >(and BFD supports such now), but the static symbol table you need to
> >look around on disk usually.
> 
>   I may not fully understand the difference between these symbol  
> tables.
> Is this an issue of a static vs. dynamic executable?  Or that either  
> might
> have either or both types of symbol tables?

A dynamic executable can have both.  Normally, the dynamic one is not
particularly useful for debugging - it will only contain symbols
referenced by shared libraries.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]