old-cross-binutils/ld/testsuite/ld-aarch64/ifunc-22.s
Will Newton 4920638856 bfd/elfnn-aarch64.c: Handle static links with ifunc correctly.
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.
2013-11-26 15:25:11 +00:00

14 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