From ab7fede88eddf004994f8769e3c7ac145628f5b4 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 18 Nov 2014 11:03:09 -0800 Subject: 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. --- ld/testsuite/ld-x86-64/x86-64.exp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ld/testsuite/ld-x86-64/x86-64.exp') diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index a9b68ff..7f09458 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -333,3 +333,10 @@ if { [isnative] && [which $CC] != 0 } { {dummy.s} {{readelf {-s --wide} x86-64-x32.rd}} "x86-64-x32"} } } + +if { ![istarget "x86_64-*-linux*"]} { + return +} + +# Linux only tests +run_dump_test "pr17618" -- cgit v1.1