Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Don't specify the object format to pick the right e...
details: https://anonhg.NetBSD.org/src/rev/532bcd6f03eb
branches: trunk
changeset: 572378:532bcd6f03eb
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Jan 01 07:00:50 2005 +0000
description:
Don't specify the object format to pick the right endianness - the
linker already knows if it is big- or little-endian.
diffstat:
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(-)
diffs (69 lines):
diff -r 92c198e577ef -r 532bcd6f03eb sys/arch/cobalt/stand/boot/Makefile
--- a/sys/arch/cobalt/stand/boot/Makefile Sat Jan 01 04:54:29 2005 +0000
+++ b/sys/arch/cobalt/stand/boot/Makefile Sat Jan 01 07:00:50 2005 +0000
@@ -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 @@
# 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 @@
${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 -r 92c198e577ef -r 532bcd6f03eb sys/arch/mipsco/stand/Makefile.booters
--- a/sys/arch/mipsco/stand/Makefile.booters Sat Jan 01 04:54:29 2005 +0000
+++ b/sys/arch/mipsco/stand/Makefile.booters Sat Jan 01 07:00:50 2005 +0000
@@ -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 <bsd.sys.mk> # for HOST_SH
@@ -34,7 +34,6 @@
# 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 -r 92c198e577ef -r 532bcd6f03eb sys/arch/pmax/stand/Makefile.booters
--- a/sys/arch/pmax/stand/Makefile.booters Sat Jan 01 04:54:29 2005 +0000
+++ b/sys/arch/pmax/stand/Makefile.booters Sat Jan 01 07:00:50 2005 +0000
@@ -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 <bsd.sys.mk> # for HOST_SH
@@ -29,7 +29,6 @@
-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 @@
${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)
Home |
Main Index |
Thread Index |
Old Index