This is the mail archive of the gdb-prs@sources.redhat.com 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: gdb/454: "DW_FORM_strp pointing outside of .debug_str section"


The following reply was made to PR gdb/454; it has been noted by GNATS.

From: Alan Modra <amodra@bigpond.net.au>
To: Stephane Carrez <stcarrez@nerim.fr>
Cc: Daniel Jacobowitz <drow@mvista.com>, gdb-gnats@sources.redhat.com,
  Reva Cuthbertson <reva@cup.hp.com>, binutils@sources.redhat.com
Subject: Re: gdb/454: "DW_FORM_strp pointing outside of .debug_str section"
Date: Wed, 23 Oct 2002 21:43:07 +0930

 On Wed, Oct 23, 2002 at 12:32:31AM +0200, Stephane Carrez wrote:
 > My problem was in the assembler where the BFD_RELOC_32 to the .debug_str 
 > labels
 > are turned into relocs against the section.  This is very bad because the 
 > .debug_str
 > section is marked with M/SEC_MERGE and strings can be removed.
 
 This is not a problem.  Or at least there is code in bfd to adjust
 relocs for SEC_MERGE sections.  See _bfd_elf_rel_local_sym and
 _bfd_elf_rela_local_sym.
 
 -- 
 Alan Modra
 IBM OzLabs - Linux Technology Centre


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