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.
4 lines
142 B
D
4 lines
142 B
D
#name: PLT PC-relative offset overflow check
|
|
#as: --64
|
|
#ld: -shared -melf_x86_64
|
|
#error: .*PC-relative offset overflow in PLT entry for `bar'
|