PERFORCE change 48764 for review
Juli Mallett
jmallett at FreeBSD.org
Thu Mar 11 21:54:07 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=48764
Change 48764 by jmallett at jmallett_oingo on 2004/03/11 21:53:14
The -G0 default wasn't really working, which is OK because we
don't have !-fno-pic->-KPIC stuff netbsd/linux/... have, which
is not OK. But for now just put in some -G0's and if out the
-G0 default attempt.
Affected files ...
.. //depot/projects/mips/contrib/gcc/config/mips/freebsd.h#12 edit
.. //depot/projects/mips/sys/conf/Makefile.mips#13 edit
.. //depot/projects/mips/sys/conf/kern.mk#10 edit
Differences ...
==== //depot/projects/mips/contrib/gcc/config/mips/freebsd.h#12 (text+ko) ====
@@ -64,8 +64,10 @@
#undef LOCAL_LABEL_PREFIX
#define LOCAL_LABEL_PREFIX ((mips_abi == ABI_32 || mips_abi == ABI_O64) \
? "$" : ".")
+#if notyet
/* -G is incompatible with -KPIC which is the default, so only allow objects
in the small data section if the user explicitly asks for it. */
#undef MIPS_DEFAULT_GVALUE
#define MIPS_DEFAULT_GVALUE 0
+#endif
==== //depot/projects/mips/sys/conf/Makefile.mips#13 (text+ko) ====
@@ -42,6 +42,8 @@
MIPSOPTS?= -mips3
CFLAGS+= -D${PLATFORM} ${MIPSOPTS}
+# Disable the gp.
+LDFLAGS+= -G0
.if defined(TEXTADDR)
LDFLAGS+= -Ttext ${TEXTADDR}
==== //depot/projects/mips/sys/conf/kern.mk#10 (text+ko) ====
@@ -78,9 +78,10 @@
#
# For MIPS, disable ABI cals, PIC, and tell GCC to use soft floating.
+# Also disable the GP.
#
.if ${MACHINE_ARCH} == "mips"
-CFLAGS+= -mno-abicalls -fno-pic -msoft-float
+CFLAGS+= -mno-abicalls -msoft-float -fno-pic -G0
INLINE_LIMIT?= 15000
.endif
More information about the p4-projects
mailing list