binutils-gdb/ld/testsuite/ld-x86-64/pr17618.s
H.J. Lu ab7fede88e Check PC-relative offset overflow in PLT entry
This patch checks PC-relative offset overflow in pushq instruction in
x86-64 PLT entry.

bfd/

	PR ld/17618
	* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Check
	PC-relative offset overflow in PLT entry.

ld/testsuite/

	PR ld/17618
	* ld-x86-64/x86-64.exp: Run pr17618 for Linux target.

	* ld-x86-64/pr17618.d: New file.
	* ld-x86-64/pr17618.s: Likewise.
2014-11-18 11:04:46 -08:00

19 lines
253 B
ArmAsm

.text
.globl foo
.type foo, @function
foo:
call bar@PLT
.size foo, .-foo
.globl gap
.type gap, @function
gap:
jmp .L0
.space 0x40000000, 0x90
.L0:
jmp .L2
.space 0x3fdfff14, 0x90
.L2:
.size gap, .-gap
.section .note.GNU-stack,"",@progbits