This is the mail archive of the binutils@sources.redhat.com 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]

[PATCH/RFA] Update OpenBSD/sparc GAS config


OpenBSD/sparc is ELF-based since OpenBSD 3.2.  This patch makes GAS
catch up with reality.

OK for mainline?  OK for the branch?

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* configure.in: Split sparc-*-netbsd* and sparc-*-openbsd*
	targets.  Distinguish between ELF and a.out based on OpenBSD
	release number.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.150
diff -u -p -r1.150 configure.in
--- configure.in 11 Apr 2004 04:07:45 -0000 1.150
+++ configure.in 11 Apr 2004 10:29:27 -0000
@@ -477,10 +477,18 @@ changequote([,])dnl
       sparc-*-sysv4*)			fmt=elf ;;
       sparc-*-solaris*)			fmt=elf ;;
       sparc-*-netbsdelf*)		fmt=elf em=nbsd ;;
-      sparc-*-*n*bsd*)	case ${cpu} in
+      sparc-*-netbsd*)	case ${cpu} in
 			    sparc64)	fmt=elf em=nbsd ;;
 			    *)		fmt=aout em=nbsd ;;
 			esac ;;
+changequote(,)dnl
+      sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
+			case ${cpu} in
+			    sparc64)	fmt=elf em=nbsd ;;
+			    *)		fmt=aout em=nbsd ;;
+			esac ;;
+changequote([,])dnl
+      sparc-*-openbsd*)			fmt=elf em=nbsd ;;
       strongarm-*-coff)			fmt=coff ;;
       strongarm-*-elf)			fmt=elf ;;
       strongarm-*-kaos*)		fmt=elf ;;
Index: configure
===================================================================
RCS file: /cvs/src/src/gas/configure,v
retrieving revision 1.166
diff -u -p -r1.166 configure
--- configure 11 Apr 2004 04:07:44 -0000 1.166
+++ configure 11 Apr 2004 10:29:29 -0000
@@ -4526,10 +4526,16 @@ echo "$as_me: error: Solaris must be con
       sparc-*-sysv4*)			fmt=elf ;;
       sparc-*-solaris*)			fmt=elf ;;
       sparc-*-netbsdelf*)		fmt=elf em=nbsd ;;
-      sparc-*-*n*bsd*)	case ${cpu} in
+      sparc-*-netbsd*)	case ${cpu} in
 			    sparc64)	fmt=elf em=nbsd ;;
 			    *)		fmt=aout em=nbsd ;;
 			esac ;;
+      sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
+			case ${cpu} in
+			    sparc64)	fmt=elf em=nbsd ;;
+			    *)		fmt=aout em=nbsd ;;
+			esac ;;
+      sparc-*-openbsd*)			fmt=elf em=nbsd ;;
       strongarm-*-coff)			fmt=coff ;;
       strongarm-*-elf)			fmt=elf ;;
       strongarm-*-kaos*)		fmt=elf ;;


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