This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: DSO with relocations and GDB.


On Mon, Apr 21, 2008 at 11:26:03AM -0700, Ananth Sowda wrote:
> On 4/18/08, Daniel Jacobowitz <drow@false.org> wrote:
> > On Fri, Apr 18, 2008 at 03:50:00PM -0700, Ananth Sowda wrote:
> > > 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.
> >
> > What does objdump -h say about this file?  IOW, what do you mean by
> > "does not seem to associate"?
> 
> BFD internal section data structure for .debug_info section is not
> marked with SEC_RELOC in flags and number of relocation records for
> the section is 0.  objdump -h output shows that sh_link(points to
> .symtab) and sh_link(points to .debug_info) are set correctly for the
> .rela_debug.info section.

That's the real problem; you may want to ask the binutils list
or debug how with sh_link/sh_info set there is still no SEC_RELOC
flag.

-- 
Daniel Jacobowitz
CodeSourcery


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