mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
87d455c042
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.
17 lines
237 B
ArmAsm
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
|