[binutils-gdb] MIPS/Haiku/LD/testsuite: Set the correct emulation and flags

"Maciej W. Rozycki via Binutils-cvs" <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c77e7124c11fe97460b86442a92b9d85898b1d02

commit c77e7124c11fe97460b86442a92b9d85898b1d02
Author: Maciej W. Rozycki <[email protected]>
Date:   Sat May 9 15:40:11 2026 +0100

    MIPS/Haiku/LD/testsuite: Set the correct emulation and flags
    
    The Haiku target has its own LD emulation and uses the IRIX ELF variant.

Diff:
---
 ld/testsuite/ld-mips-elf/comm-data.exp | 2 ++
 ld/testsuite/ld-mips-elf/mips-elf.exp  | 1 +
 2 files changed, 3 insertions(+)

diff --git a/ld/testsuite/ld-mips-elf/comm-data.exp b/ld/testsuite/ld-mips-elf/comm-data.exp
index d06c60b1add..4203bc6033f 100644
--- a/ld/testsuite/ld-mips-elf/comm-data.exp
+++ b/ld/testsuite/ld-mips-elf/comm-data.exp
@@ -93,6 +93,8 @@ if {[istarget *-img-elf*] \
     } else {
 	set abi_ldemul(o32) elf32ebmip
     }
+} elseif { [istarget *-*-haiku*] } {
+    set abi_ldemul(o32) elf_mipsel_haiku
 } else {
     if [istarget *el-*-*] {
 	set abi_ldemul(o32) elf32lsmip
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index c5c1e4e75a8..04b2951f2fd 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -260,6 +260,7 @@ if {[istarget *-*-openbsd*] } {
     set abi_ldflags(o32) -melf32lr5900
     set irixemul 1
 } elseif { [istarget *-*-elf*] \
+	   || [istarget *-*-haiku*] \
 	   || [istarget *-*-rtems*] } {
     set abi_asflags(o32) -32
     set irixemul 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.