This is the mail archive of the binutils@sourceware.org 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: ld - references to merged SEC_MERGED .debug_str not adjusted


On Wed, May 14, 2014 at 08:56:13AM +1000, Paul Shortis wrote:
> However after linking to create a binary, dumping the binary reveals
> that unused entries in .debug_str have been deleted (I assume
> because this is a SEC_MERGE section), however the indirect string
> offsets in .debug_info that point into .debug_str haven't been
> adjusted and are therefore invalid.

Presumably you have relocations on the .debug_info pointers to
.debug_str..  Are those relocs against the .debug_str section symbol?
Do you use _bfd_elf_rela_local_sym (or _bfd_elf_rel_local_sym) to
adjust the reloc addends?

-- 
Alan Modra
Australia Development Lab, IBM


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