mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
ab7fede88e
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.
19 lines
253 B
ArmAsm
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
|