Fix failure in x86_64 linker tests when compiling with a PIE enabled compiler.
authorNick Clifton <nickc@redhat.com>
Fri, 7 Apr 2017 10:48:08 +0000 (11:48 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 7 Apr 2017 10:48:08 +0000 (11:48 +0100)
PR 21090
* testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
disable PIE for the non-pie version of the test.

ld/ChangeLog
ld/testsuite/ld-x86-64/x86-64.exp

index f4917b7effff378366ca390dff45a49e35135391..c632fd8db49aa356c16431c7ce2e61f3692f1193 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-07  Nick Clifton  <nickc@redhat.com>
+
+       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  <amodra@gmail.com>
 
        * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
index e7a7f80bdabc6346837519e10496e0c6f457490f..579ffc14b5a32531d9b5e2c3ac269a802c268a20 100644 (file)
@@ -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"