]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Stop the BFD library from treating annobin symbols as potential function symbols.
authorNick Clifton <nickc@redhat.com>
Wed, 28 Apr 2021 10:49:09 +0000 (11:49 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 28 Apr 2021 10:49:09 +0000 (11:49 +0100)
commit24aebc79b16a82faef4736f4abdc7e4d95d4cc67
treeea49e9d39592b298a0ed0297a2163a77b98cbc1e
parentedeaceda7b2f33b2c3bf78c732e67f3188e7f0b9
Stop the BFD library from treating annobin symbols as potential function symbols.

bfd * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
symbols as potential function symbols.
* elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
* elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
* elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.

ld * testsuite/ld-elf/anno-sym.s: New test source file.
* testsuite/ld-elf/anno-sym.d: New test driver.
* testsuite/ld-elf/anno-sym.l: New test error output.
bfd/ChangeLog
bfd/elf.c
bfd/elf32-arm.c
bfd/elf64-ppc.c
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-elf/anno-sym.d [new file with mode: 0644]
ld/testsuite/ld-elf/anno-sym.l [new file with mode: 0644]
ld/testsuite/ld-elf/anno-sym.s [new file with mode: 0644]