Subject: ELF support for crunch* and mdsetimage.
To: None <port-m68k@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: port-m68k
Date: 01/02/2001 23:46:35
In the interests of making like easier for both the current ELF
m68k ports and the ones yet to transition to ELF, I'd like to
enable ELF support for both object file formats. I don't have
any a.out m68k boxes around here - can someone with one please
verify that the following at least compiles cleanly?
Ta,
Simon.
--
Index: usr.bin/crunch/crunchide/Makefile
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/crunch/crunchide/Makefile,v
retrieving revision 1.8
diff -d -p -u -r1.8 Makefile
--- usr.bin/crunch/crunchide/Makefile 2001/01/02 12:30:14 1.8
+++ usr.bin/crunch/crunchide/Makefile 2001/01/02 12:42:15
@@ -10,16 +10,15 @@ CPPFLAGS+=-DNLIST_ELF64 -DNLIST_ECOFF
${MACHINE_ARCH} == "mips" || \
${MACHINE_ARCH} == "mipsel" || \
${MACHINE_ARCH} == "mipseb" || \
- ${MACHINE_ARCH} == "powerpc" || \
- ${MACHINE} == "mvme68k" || \
- ${MACHINE} == "hp300"
+ ${MACHINE_ARCH} == "powerpc"
CPPFLAGS+=-DNLIST_ELF32
.elif ${MACHINE_ARCH} == "sh3"
CPPFLAGS+=-DNLIST_ELF32 -DNLIST_COFF
.elif ${MACHINE_ARCH} == "sparc64"
CPPFLAGS+=-DNLIST_AOUT -DNLIST_ELF32 -DNLIST_ELF64
.elif ${MACHINE_ARCH} == "sparc" || \
- ${MACHINE_ARCH} == "i386"
+ ${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "m68k"
CPPFLAGS+=-DNLIST_AOUT -DNLIST_ELF32
.else
CPPFLAGS+=-DNLIST_AOUT
Index: usr.sbin/mdsetimage/Makefile
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/mdsetimage/Makefile,v
retrieving revision 1.4
diff -d -p -u -r1.4 Makefile
--- usr.sbin/mdsetimage/Makefile 2000/12/18 20:43:58 1.4
+++ usr.sbin/mdsetimage/Makefile 2001/01/02 12:42:15
@@ -12,11 +12,11 @@ CPPFLAGS+=-DNLIST_ELF64
CPPFLAGS+=-DNLIST_ECOFF
CPPFLAGS+=-DNLIST_ELF32
CPPFLAGS+=-DNLIST_AOUT
-.elif ${MACHINE_ARCH} == "powerpc" || \
- ${MACHINE} == "mvme68k"
+.elif ${MACHINE_ARCH} == "powerpc"
CPPFLAGS+=-DNLIST_ELF32
.elif ${MACHINE_ARCH} == "i386" || \
- ${MACHINE_ARCH} == "sparc"
+ ${MACHINE_ARCH} == "sparc" || \
+ ${MACHINE_ARCH} == "m68k"
CPPFLAGS+=-DNLIST_ELF32
CPPFLAGS+=-DNLIST_AOUT
.elif ${MACHINE_ARCH} == "sh3"