Don't specify the object format to pick the right endianness - the
linker already knows if it is big- or little-endian.
This commit is contained in:
parent
91c61919b2
commit
98ffe3f03f
|
@ -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}
|
||||
|
|
|
@ -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 @@ 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}"'
|
||||
|
|
|
@ -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 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue