This is the mail archive of the
mailing list for the GDB project.
DSO with relocations and GDB.
- From: "Ananth Sowda" <asowda at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 18 Apr 2008 15:50:00 -0700
- Subject: DSO with relocations and GDB.
The powerpc eabi DSO (dynamic shared object) I'm debugging using GDB
6.6 has .debug_info and other debug tables which have unresolved
relocations. The .rela_debug_info is available in the DSO and it has
sh_link set to .symtab, sh_info to .debug_info. However, the bfd code
in GDB 6.6 does not seem to associate the .debug_info with
corresponding .rela_debug.info section. When GDB attempts to relocate
these debug tables, bfd does not recognize that the section has
relocations. This results in zero value for the offset for a symbol
from debug table and gets wrong address for a symbol lookup.
Any suggestions for solution to this problem? Is there a bfd function
which can be called from GDB to associate debug tables and their
relocation section counter parts?