mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
4920638856
The code for handling GOT references to ifunc symbols in static links was missing. bfd/ChangeLog: 2013-11-26 Will Newton <will.newton@linaro.org> * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Handle STT_GNU_IFUNC symbols correctly in static links. ld/testsuite/ChangeLog: 2013-11-26 Will Newton <will.newton@linaro.org> * ld-aarch64/aarch64-elf.exp: Add ifunc-22. * ld-aarch64/ifunc-22.d: New file. * ld-aarch64/ifunc-22.s: Likewise.
15 lines
260 B
ArmAsm
15 lines
260 B
ArmAsm
.text
|
|
.type ifunc, @gnu_indirect_function
|
|
.global ifunc
|
|
ifunc:
|
|
ret
|
|
.size ifunc, .-ifunc
|
|
.type _start, @function
|
|
.globl _start
|
|
_start:
|
|
adrp x0, :got:ifunc
|
|
ldr x0, [x0, #:got_lo12:ifunc]
|
|
.size _start, .-_start
|
|
.data
|
|
.xword ifunc
|