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]
Other format: [Raw text]

Re: gdb/454: "DW_FORM_strp pointing outside of .debug_str section"


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]