From 98ffe3f03f23274fd64b321f9232c26d27e93798 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 1 Jan 2005 07:00:50 +0000 Subject: [PATCH] Don't specify the object format to pick the right endianness - the linker already knows if it is big- or little-endian. --- sys/arch/cobalt/stand/boot/Makefile | 5 ++--- sys/arch/mipsco/stand/Makefile.booters | 3 +-- sys/arch/pmax/stand/Makefile.booters | 5 ++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/sys/arch/cobalt/stand/boot/Makefile b/sys/arch/cobalt/stand/boot/Makefile index f25f6fdca86c..d4bfe179182f 100644 --- a/sys/arch/cobalt/stand/boot/Makefile +++ b/sys/arch/cobalt/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2004/06/21 18:20:08 jmc Exp $ +# $NetBSD: Makefile,v 1.9 2005/01/01 07:00:50 simonb Exp $ NOMAN= # defined @@ -58,7 +58,6 @@ CPPFLAGS+= -DCOMSPEED=${COMSPEED} -DCOMPROBE=${COMPROBE} # compiler flags for smallest code size CFLAGS= -Os -mmemcpy -ffreestanding -mno-abicalls -msoft-float -G 128 -OFORMAT= --oformat elf32-littlemips NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' @@ -93,7 +92,7 @@ vers.c: ${.CURDIR}/version ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version "cobalt" ${PROG}: machine-links ${LDSCRIPT} ${OBJS} ${LIBS} - ${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \ + ${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \ -T ${LDSCRIPT} -e start -o ${PROG} ${OBJS} ${LIBS} gzip -c9 ${PROG} > ${PROG}.gz @${SIZE} ${PROG} diff --git a/sys/arch/mipsco/stand/Makefile.booters b/sys/arch/mipsco/stand/Makefile.booters index fd537bf68668..20446665b9c3 100644 --- a/sys/arch/mipsco/stand/Makefile.booters +++ b/sys/arch/mipsco/stand/Makefile.booters @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.10 2004/07/19 01:41:26 chs Exp $ +# $NetBSD: Makefile.booters,v 1.11 2005/01/01 07:00:51 simonb Exp $ .include # for HOST_SH @@ -34,7 +34,6 @@ CPPFLAGS+= -I${.OBJDIR} -I${S} # compiler flags for smallest code size #CFLAGS= -Os -mmemcpy -mno-abicalls -G 128 CFLAGS= -Os -mmemcpy -ffreestanding -mno-abicalls -msoft-float -G 128 -OFORMAT= --oformat elf32-bigmips NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' diff --git a/sys/arch/pmax/stand/Makefile.booters b/sys/arch/pmax/stand/Makefile.booters index 5267691a9810..9ab1fe1941a4 100644 --- a/sys/arch/pmax/stand/Makefile.booters +++ b/sys/arch/pmax/stand/Makefile.booters @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.44 2004/06/21 18:20:09 jmc Exp $ +# $NetBSD: Makefile.booters,v 1.45 2005/01/01 07:00:51 simonb Exp $ .include # for HOST_SH @@ -29,7 +29,6 @@ CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES \ -I${.OBJDIR} -I${S} # compiler flags for smallest code size CFLAGS= -ffreestanding -Os -g -mmemcpy -mno-abicalls -G 128 -OFORMAT= --oformat elf32-littlemips LDBUG= -T $S/arch/mips/conf/stand.ldscript NETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh @@ -111,7 +110,7 @@ vers.c: ${.CURDIR}/version ${HOST_SH} ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "pmax" ${PROG}: machine mips pmax ${OBJS} ${LIBS} - ${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \ + ${LD} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \ ${LDBUG} -e start -o ${PROG} ${OBJS} ${LIBS} @${SIZE} ${PROG} .if defined(CHECKSIZE_CMD)