objcopy of mach-o indirect symbols
authorAlan Modra <amodra@gmail.com>
Fri, 10 Feb 2023 00:24:32 +0000 (10:54 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Feb 2023 00:32:24 +0000 (11:02 +1030)
commit7027a373b2422eb682df69639308134283edd0b8
tree9110eb7ec58633eaf82d092c4159e4cb84db933c
parent930531e8f777643c2e0afd413ba5f1043219f57c
objcopy of mach-o indirect symbols

Anti-fuzzer measure.  I'm not sure what the correct fix is for
objcopy.  Probably the BFD_MACH_O_S_NON_LAZY_SYMBOL_POINTERS,
BFD_MACH_O_S_LAZY_SYMBOL_POINTERS and BFD_MACH_O_S_SYMBOL_STUBS
contents should be read.

* mach-o.c (bfd_mach_o_section_get_nbr_indirect): Omit sections
with NULL sec->indirect_syms.
bfd/mach-o.c