From: Nick Clifton Date: Fri, 7 Apr 2017 10:48:08 +0000 (+0100) Subject: Fix failure in x86_64 linker tests when compiling with a PIE enabled compiler. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae3f8c28134b52414a4c31df2e156615087c46e5;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index f4917b7efff..c632fd8db49 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 e7a7f80bdab..579ffc14b5a 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"