ELF output symbol hooks int vs. bfd_boolean
authorAlan Modra <amodra@gmail.com>
Sun, 28 Mar 2021 23:09:15 +0000 (09:39 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 29 Mar 2021 00:52:21 +0000 (11:22 +1030)
commit37bb890f814d58dd4c5f67db32ea4618008229ee
tree96cac119eb97496b93bf83069ff0634dde3846b1
parent0f68420117f805ecb51aa623867201f9d95a5ab7
ELF output symbol hooks int vs. bfd_boolean

elf_backend_link_output_symbol_hook and elf_link_output_symstrtab may
return 2 when a symbol is to be discarded.  Update places that use
bfd_boolean rather than int for these functions.

* elflink.c (elf_link_output_symstrtab): Make flinfo parameter
a void pointer.
(bfd_elf_final_link): Delete out_sym_func typedef and don't cast
elf_link_output_symstrtab when calling output_arch_syms and
output_arch_local_syms.
* elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
elf_backend_output_arch_local_syms>): Change return type of func
arg to match elf_link_output_symstrtab.
* elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
return type.
* elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
(nds32_elf_output_arch_syms): Correct func return type.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-vxworks.h
bfd/elf32-nds32.c
bfd/elflink.c