mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
a496fbc880
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.
14 lines
196 B
ArmAsm
14 lines
196 B
ArmAsm
.text
|
|
.global fun
|
|
.type fun, %function
|
|
fun:
|
|
.space 4
|
|
.size fun, .-fun
|
|
|
|
.section .data.rel.ro,"aw",%progbits
|
|
.p2align 3
|
|
.type fun_ptr, %object
|
|
fun_ptr:
|
|
.dc.a fun
|
|
.size fun_ptr, .-fun_ptr
|