Date: Thu, 11 Mar 2004 21:54:05 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 48764 for review Message-ID: <200403120554.i2C5s5oR061827@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=48764 Change 48764 by jmallett@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403120554.i2C5s5oR061827>