This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gdb/454: "DW_FORM_strp pointing outside of .debug_str section"
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: Daniel Jacobowitz <drow at mvista dot com>, gdb-gnats at sources dot redhat dot com, Reva Cuthbertson <reva at cup dot hp dot com>, binutils at sources dot redhat dot com
- Date: Wed, 23 Oct 2002 21:43:07 +0930
- Subject: Re: gdb/454: "DW_FORM_strp pointing outside of .debug_str section"
- References: <3DB5D1FF.2040503@nerim.fr>
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