Fix broken -Bsymbolic-functions
authorAlan Modra <amodra@gmail.com>
Sat, 25 Jul 2015 07:08:42 +0000 (16:38 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 25 Jul 2015 11:11:04 +0000 (20:41 +0930)
commita496fbc8802f0a5719db6347a43cc869e03d83c9
tree21bdd4f9bfe1bb57b0690d57ac485dd9bd189d71
parentca3084f54b62ce06c6e70a6e1daafeb5e3317c12
Fix broken -Bsymbolic-functions

For selected targets.  The testcase reveals a number of targets that
still need fixing.

bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Use SYMBOLIC_BIND to
check if a symbol should be bound symbolically.
* elf32-hppa.c (elf32_hppa_check_relocs,
elf32_hppa_adjust_dynamic_symbol, elf32_hppa_relocate_section,
elf32_hppa_finish_dynamic_symbol): Likewise.
* elf32-m68k.c (elf_m68k_check_relocs,
elf_m68k_relocate_section): Likewise.
* elf32-nios2.c (nios2_elf32_relocate_section,
nios2_elf32_check_relocs, allocate_dynrelocs): Likewise.
* elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol,
elf32_tic6x_relocate_section): Likewise.
ld/testsuite/
* ld-elf/symbolic-func.s,
* ld-elf/symbolic-func.r: New test.
* ld-elf/elf.exp: Run it.
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elf32-hppa.c
bfd/elf32-m68k.c
bfd/elf32-nios2.c
bfd/elf32-tic6x.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/symbolic-func.r [new file with mode: 0644]
ld/testsuite/ld-elf/symbolic-func.s [new file with mode: 0644]
This page took 0.026575 seconds and 4 git commands to generate.