From ae3f8c28134b52414a4c31df2e156615087c46e5 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 7 Apr 2017 11:48:08 +0100 Subject: [PATCH] Fix failure in x86_64 linker tests when compiling with a PIE enabled compiler. PR 21090 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly disable PIE for the non-pie version of the test. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-x86-64/x86-64.exp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index f4917b7eff..c632fd8db4 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-04-07 Nick Clifton + + PR 21090 + * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly + disable PIE for the non-pie version of the test. + 2017-04-07 Alan Modra * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char. diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index e7a7f80bda..579ffc14b5 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -1277,7 +1277,7 @@ if { [isnative] && [which $CC] != 0 } { ] } - undefined_weak "" "" + undefined_weak "-fno-pie" "-no-pie" undefined_weak "-fPIE" "" undefined_weak "-fPIE" "-pie" undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak" -- 2.34.1