[PATCH] Fix section symbols in objcopy when removing sections with relocations from Elf objects
H. J. Lu
hjl@lucon.org
Thu May 25 00:58:00 GMT 2006
On Wed, May 24, 2006 at 03:29:59PM +0100, Julian Brown wrote:
> Julian Brown wrote:
> >Hi,
> >
> >This patch fixes a problem where, if sections are removed during objcopy
> >with Elf object files, the section symbols corresponding to the
> >relocation sections for the removed sections may be left in the target
> >object file.
>
> This is a slightly-smarter version (thanks to offlist discussion with
> Dan) which knows about recoving Elf symbols from BFD symbols, hence
> avoids some unnecessary work.
>
Can you add a testcase so that it won't be broken by accident?
H.J.
More information about the Binutils
mailing list