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: [PATCH] Fix section symbols in objcopy when removing sections with relocations from Elf objects


On Wed, May 24, 2006 at 02:35:14PM +0100, Julian Brown wrote:
>     * objcopy.c (filter_symbols): Filter out section symbols for
>     sections which are being stripped and their associated relocation
>     sections. Call bfd_copy_private_symbol_data for each symbol which
>     passes the filter.

I think this should be fixed in elf.c:elf_map_symbols by throwing away
any bad section syms.  That way we keep (more) elf specific code out of
objcopy.c.  I'll take a look at it.

-- 
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]