binutils-gdb/ld/testsuite/ld-x86-64/pr19719.s
H.J. Lu 87d455c042 Add another testcase for PR ld/19719
This test checks run-time relocation overflow with GOT relocation and
32-bit relocation against the same symbol.

	PR ld/19719
	* testsuite/ld-x86-64/pr19719.d: New file.
	* testsuite/ld-x86-64/pr19719.s: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Run pr19719.
2016-04-19 20:11:55 -07:00

17 lines
237 B
ArmAsm

.text
.globl _start
.type _start, @function
_start:
movl foo_p(%rip), %eax
movq foo@GOTPCREL(%rip), %rax
ret
.size _start, .-_start
.globl foo_p
.data
.align 4
.type foo_p, @object
.weak foo
.size foo_p, 4
foo_p:
.long foo