Subject: Re: ELF?
To: None <khym@azeotrope.org>
From: Takeshi Shibagaki <ie9t-sbgk@asahi-net.or.jp>
List: port-mac68k
Date: 03/16/2002 20:28:16
Hi,

From: Dave Huang <khym@azeotrope.org>
Subject: ELF?
Date: Sat, 16 Mar 2002 00:26:47 -0600 (CST)
Message-ID: <Pine.NEB.4.40.0203160007090.2499-100000@yerfable.azeotrope.org>

khym> I admit I haven't been watching this list too closely, so apologies if
khym> this has already been discussed :)
khym> 
khym> I know Steve Allen has been making ELF snapshots, but once I install a
khym> snapshot, what do I have to do if I want to rebuild my system and keep
khym> the ELF toolchain? Is it just a matter of setting USE_NEW_TOOLCHAIN?

Soryy, I want to merge IDE support before switching ELF.
I have not worked switching ELF for main trunk, but have
worked in my local tree. Please wait for a while because
I have no free time now.

# I want to merge IDE support and switching ELF as 1.6.x-REELASE
# feature, but it will be no time because 1.6 branch will make at
# 25 in this month.

You cannot make just setting USE_NEW_TOOLCHAIN, but if you apply
the folloing patch and do build.sh, you will make ELF binary.

Takeshi Shibagaki
ie9t-sbgk@asahi-net.or.jp

diff -ru src.orig/sys/arch/mac68k/conf/GENERIC src/sys/arch/mac68k/conf/GENERIC
--- src.orig/sys/arch/mac68k/conf/GENERIC       Fri Dec 28 21:21:57 2001
+++ src/sys/arch/mac68k/conf/GENERIC    Wed Jan 23 22:49:32 2002
@@ -74,6 +74,7 @@
 options        COMPAT_13       # NetBSD 1.3,
 options        COMPAT_14       # NetBSD 1.4,
 options        COMPAT_43       # and 4.3BSD
+options                COMPAT_AOUT_M68K        # compatibility with NetBSD/m68k
 a.out
 #options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
 
 options        COMPAT_SUNOS    # compatibility with SunOS 4.x binaries
@@ -221,6 +222,10 @@
 se*    at scsibus? target ? lun ?      # SCSI ethernet
 ss*    at scsibus? target ? lun ?      # SCSI scanners
 uk*    at scsibus? target ? lun ?      # SCSI unknown
diff -ru src.orig/sys/arch/mac68k/conf/GENERICSBC src/sys/arch/mac68k/conf/GENERICSBC
--- src.orig/sys/arch/mac68k/conf/GENERICSBC    Fri Dec 28 21:21:57 2001
+++ src/sys/arch/mac68k/conf/GENERICSBC Wed Jan 23 22:52:31 2002
@@ -58,6 +58,7 @@
 options        COMPAT_13       # NetBSD 1.3,
 options        COMPAT_14       # NetBSD 1.4,
 options        COMPAT_43       # and 4.3BSD
+options                COMPAT_AOUT_M68K        # compatibility with NetBSD/m68k
 a.out
 #options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
 
 options        COMPAT_SUNOS    # compatibility with SunOS 4.x binaries
@@ -205,6 +206,10 @@
 se*    at scsibus? target ? lun ?      # SCSI ethernet
 ss*    at scsibus? target ? lun ?      # SCSI scanners
 uk*    at scsibus? target ? lun ?      # SCSI unknown
diff -ru src.orig/sys/arch/mac68k/conf/std.mac68k src/sys/arch/mac68k/conf/std.mac68k
--- src.orig/sys/arch/mac68k/conf/std.mac68k    Tue Nov 20 21:56:32 2001
+++ src/sys/arch/mac68k/conf/std.mac68k Wed Jan 23 22:48:31 2002
@@ -9,4 +9,5 @@
 
 # Executable support
 options        EXEC_AOUT       # a.out binary support
+options                EXEC_ELF32      # elf binary support
 options        EXEC_SCRIPT     # shell script support
diff -ruN src.orig/sys/arch/mac68k/mac68k/conf.c src/sys/arch/mac68k/mac68k/conf
.c
--- bsd.own.mk.orig     Sat Feb 16 06:28:04 2002
+++ bsd.own.mk  Thu Feb 21 02:25:45 2002
@@ -19,8 +19,7 @@
 .if !(${MACHINE_ARCH} == "arm32" || \
       ${MACHINE_ARCH} == "ns32k" || \
       ${MACHINE_ARCH} == "sh3eb" || ${MACHINE_ARCH} == "sh3el" || \
-      ${MACHINE_ARCH} == "vax"   || \
-      ${MACHINE} == "mac68k")
+      ${MACHINE_ARCH} == "vax")
 USE_NEW_TOOLCHAIN=nowarn
 .endif
 .endif
--- src.orig/distrib/sets/lists/comp/md.mac68k  Wed Nov 28 22:29:29 2001
+++ src/distrib/sets/lists/comp/md.mac68k       Tue Jan 22 09:27:12 2002
@@ -54,5 +54,3 @@
 ./usr/include/mac68k/vmparam.h comp-c-include
 ./usr/include/mac68k/z8530var.h        comp-c-include
 ./usr/include/ieeefp.h         comp-c-include
-./usr/lib/c++rt0.o             comp-cxx-lib
-./usr/lib/scrt0.o              comp-c-lib