This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
OpenBSD/i386 ELF gas support
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: binutils at sourceware dot org
- Date: Mon, 11 Apr 2005 21:02:33 +0200 (CEST)
- Subject: OpenBSD/i386 ELF gas support
The attached patch adds support to gas for OpenBSD/i386 3.3 and later,
which are ELF instead of a.out. There's only one FAIL in the
testsuite on my i386-unknown-openbsd3.7 system, and that one is due to
a spurious match in the fastcall test. I'll submit a patch for that
seperately.
OK?
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gas/configure.tgt,v
retrieving revision 1.6
diff -u -p -r1.6 configure.tgt
--- configure.tgt 23 Mar 2005 15:35:46 -0000 1.6
+++ configure.tgt 11 Apr 2005 18:58:09 -0000
@@ -182,11 +182,14 @@ case ${generic_target} in
i386-*-netbsd*-gnu* | \
i386-*-knetbsd*-gnu | \
i386-*-netbsdelf*) fmt=elf em=nbsd ;;
- i386-*-*n*bsd*)
+ i386-*-netbsd*)
case ${cpu} in
x86_64) fmt=elf em=nbsd ;;
*) fmt=aout em=nbsd ;;
esac ;;
+ i386-*-openbsd[0-2].* | \
+ i386-*-openbsd3.[0-2]) fmt=aout em=nbsd ;;
+ i386-*-openbsd*) fmt=elf em=nbsd ;;
i386-*-linux*aout*) fmt=aout em=linux ;;
i386-*-linux*oldld) fmt=aout em=linux ;;
i386-*-linux*coff*) fmt=coff em=linux ;;