BFD: how to obtain Dynamic Section ?

Yannick PERRET yperret@bat710.univ-lyon1.fr
Thu Feb 15 08:56:00 GMT 2001


Hi,
I'm using BFD to read a program's symbol names. It works fine,
but in the case of an executable linked with dynamic objects,
additionnal informations (such as original file or line number [-g])
are not available. I need to read them in the corresponding .so files.
I perform this well, but I need to give the list of .so files used by
the
program.
Is there a way (using BFD or an other one) to obtain the list of
dynamic objects needed by the program (such as the objdump output:
Dynamic Section:
  NEEDED      fic1.so
  NEEDED      ../fnccheck-1.4/lib/libfnccheck.so
  NEEDED      libc.so.6
...)
or even better, to obtain for a given symbol (a function) the corresponding
object in which it is ?
Thank you in advance for your help.
--
Yannick Perret
yperret at ligim.univ-lyon1.fr
http://www710.univ-lyon1.fr/~yperret
 



More information about the Binutils mailing list