This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: stripping debug info & local symbols
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Cc: Alan Modra <amodra at bigpond dot net dot au>
- Date: Tue, 03 Jun 2008 16:05:46 +0100
- Subject: Re: stripping debug info & local symbols
- References: <48454535.5050309@codesourcery.com>
Nathan Sidwell wrote:
I'm trying to fix a bug where objcopy -g is breaking relocations in a
relocatable vxworks executable. The executable is generated by a
non-gnu linker. It contains the following reloc and symbol table entry:
A little detective work fingers
http://sourceware.org/ml/binutils/2006-05/msg00458.html
should we perhaps be fixing up the reloc in elf_write_relocs? I'm guessing we
could check internal and external symbols, and if they are different figure out
whether sec->output_offset and sym->values tell us there's an additional addend
to adjust.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery