This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Commited patch for elf*-sparc.c (was binutils: "unexpected reloc type 0x17" on sparc)
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: Commited patch for elf*-sparc.c (was binutils: "unexpected reloc type 0x17" on sparc)
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 11 Jul 2001 15:20:39 -0700
- Cc: davem at redhat dot com, hjl at lucon dot org, kloczek at rudy dot mif dot pg dot gda dot pl, libc-alpha at sourceware dot cygnus dot com, binutils at sourceware dot cygnus dot com
- References: <15163.44509.408432.791384@pizda.ninka.net> <si7kxw1bca.fsf@daffy.airs.com> <15163.45804.596214.835449@pizda.ninka.net> <20010629071648.D1195@sunsite.ms.mff.cuni.cz> <20010629150510.F18986@bubble.local> <20010629122618.B737@sunsite.ms.mff.cuni.cz> <si7kxvxlvr.fsf@daffy.airs.com> <20010711222024.I899@sunsite.ms.mff.cuni.cz> <20010711134349.B11676@redhat.com> <20010711180423.R1481@devserv.devel.redhat.com>
On Wed, Jul 11, 2001 at 06:04:23PM -0400, Jakub Jelinek wrote:
> > For dwarf2 sections, gdb _should_ use the reloc sections.
>
> What for?
Because otherwise gdb doesn't know what the address for a given
symbol should be. All it has is a big fat 0 because the symbol
was resolved by ld to some external DSO.
GDB should take the .rela.debug_* sections and apply them to it's
local copy of .debug_info using the same rules used by ld.so.
r~