This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] Fix section symbols in objcopy when removing sections with relocations from Elf objects
Alan Modra wrote:
* elf.c (sym_is_global): Return a bfd_boolean.
(ignore_section_sym): New function.
(elf_map_symbols): Use ignore_section_sym to discard some syms.
(_bfd_elf_symbol_from_bfd_symbol): Ensure section belongs to
bfd before using elf_section_syms.
Thanks very much for looking into this! It's far preferable that the fix
is in Elf-specific code rather than the generic code, I agree. FYI, this
patch fixes the original problem just fine, and I've committed it on our