Check PC-relative offset overflow in PLT entry
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Nov 2014 19:03:09 +0000 (11:03 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 18 Nov 2014 19:04:46 +0000 (11:04 -0800)
commitab7fede88eddf004994f8769e3c7ac145628f5b4
tree85688a9f445489647b2750bd597da68327037c7a
parent439247b656ce3bcfaa00fec7dbce70e65ca17cf5
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.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/pr17618.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr17618.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp