binutils-gdb/ld/testsuite/ld-arm/ifunc-17.s
Will Newton aba8c3de87 bfd/efl32-arm.c: Fix handling of IRELATIVE relocs.
bfd/ChangeLog:

2013-04-24  Will Newton  <will.newton@linaro.org>

	* elf32-arm.c (elf32_arm_populate_plt_entry): Call
	elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.

ld/testsuite/ChangeLog:

2013-04-24  Will Newton  <will.newton@linaro.org>

	* ld-arm/arm-elf.exp: Add IFUNC test 17.
	* ld-arm/ifunc-17.dd: New file.
	* ld-arm/ifunc-17.gd: Likewise.
	* ld-arm/ifunc-17.rd: Likewise.
	* ld-arm/ifunc-17.s: Likweise.
	* ld-arm/ifunc-1.rd: Reorder relocs to match linker output.
	* ld-arm/ifunc-2.rd: Likewise.
	* ld-arm/ifunc-5.rd: Likewise.
	* ld-arm/ifunc-6.rd: Likewise.
2013-04-29 09:48:32 +00:00

25 lines
379 B
ArmAsm

.syntax unified
.arch armv6t2
.global appfunc1
.type appfunc1,%gnu_indirect_function
.thumb
appfunc1:
mov pc,lr
.size appfunc1,.-appfunc1
.global appfunc2
.type appfunc2,%gnu_indirect_function
.thumb
appfunc2:
mov pc,lr
.size appfunc2,.-appfunc2
.global _start
.type _start,%function
.thumb
_start:
bl appfunc1(PLT)
.word appfunc2(GOT)
.size _start,.-_start