[committed] MIPS/LD/testsuite: Correct LD emulations for `mips*-*-kfreebsd*-gnu'

Maciej W. Rozycki macro@mips.com
Tue Apr 3 08:19:00 GMT 2018


Complement commit 86b24e15c45b ("MIPS/LD/testsuite: Correct 
comm-data.exp test ABI/emul/endian arrangement") and set LD emulations 
correctly for `mips*-*-kfreebsd*-gnu' targets in comm-data.exp, removing 
test suite failures:

FAIL: MIPS o32/copyreloc common symbol override test (auxiliary shared object build)
FAIL: MIPS o32/copyreloc common symbol override test
FAIL: MIPS o32/nocopyreloc common symbol override test (auxiliary shared object build)
FAIL: MIPS o32/nocopyreloc common symbol override test

	ld/
	* testsuite/ld-mips-elf/comm-data.exp: Correct support for 
	`mips*-*-kfreebsd*-gnu' targets.
---
 ld/testsuite/ld-mips-elf/comm-data.exp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

binutils-mips-ld-test-comm-data-kfreebsd.diff
Index: binutils/ld/testsuite/ld-mips-elf/comm-data.exp
===================================================================
--- binutils.orig/ld/testsuite/ld-mips-elf/comm-data.exp	2018-02-24 15:05:32.000000000 +0000
+++ binutils/ld/testsuite/ld-mips-elf/comm-data.exp	2018-03-27 17:19:15.831968810 +0100
@@ -39,9 +39,11 @@ set has_n32abi [expr [istarget *-img-elf
 		     || [istarget *-sde-elf*] \
 		     || [istarget *-*-freebsd*] \
 		     || [istarget *-*-irix6*] \
+		     || [istarget *-*-kfreebsd*-gnu] \
 		     || [istarget *-*-linux*]]
 set has_n64abi [expr [istarget *-*-freebsd*] \
 		     || [istarget *-*-irix6*] \
+		     || [istarget *-*-kfreebsd*-gnu] \
 		     || [istarget *-*-linux*] \
 		     || [istarget *-*-netbsd*] \
 		     || [istarget *-*-openbsd*]]
@@ -62,7 +64,8 @@ if {[istarget *-img-elf*] \
 	set abi_ldemul(n32) elf32btsmipn32
 	set abi_ldemul(n64) elf64btsmip
     }
-} elseif { [istarget *-*-freebsd*] } {
+} elseif { [istarget *-*-freebsd*] \
+	   || [istarget *-*-kfreebsd*-gnu] } {
     if [istarget *el-*-*] {
 	set abi_ldemul(o32) elf32ltsmip_fbsd
 	set abi_ldemul(n32) elf32ltsmipn32_fbsd



More information about the Binutils mailing list