This is the mail archive of the binutils@sources.redhat.com 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]

Re: Commited patch for elf*-sparc.c (was binutils: "unexpected reloc type 0x17" on sparc)


On Wed, Jul 11, 2001 at 01:43:49PM -0700, Richard Henderson wrote:
> On Wed, Jul 11, 2001 at 10:20:24PM +0200, Jakub Jelinek wrote:
> > I added an flags & SEC_ALLOC check instead (which means e.g. that we no
> > longer output useless .rela.stab on sparc when nobody uses it)
> 
> For dwarf2 sections, gdb _should_ use the reloc sections.

What for?
Apparently neither i386 nor IA-64 use .rela.debug_info etc. reloc sections
nor does gdb AFAIK use them.

> It's got no other way to get at the information in question.

It took me less than a day to write dwarf2 relocator for the prelink
program.
The relocation rules are there fairly easy and the format is very clear on
what should and what should not be relocated (in .debug_info DW_FORM_addr
format attributes and DW_OP_addr arguments , in .debug_line DW_LNE_set_address,
in .debug_aranges always the first of the address/len pair, in .debug_loc
DW_OP_addr arguments should be relocated).

	Jakub


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