This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix failure in x86_64 linker tests when compiling with a PIE enabled compiler.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ae3f8c28134b52414a4c31df2e156615087c46e5

commit ae3f8c28134b52414a4c31df2e156615087c46e5
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Apr 7 11:48:08 2017 +0100

    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:
---
 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 f4917b7..c632fd8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index e7a7f80..579ffc1 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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]