From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-embedded+bounces-1295-garchives=archives.gentoo.org@gentoo.org>) id 1GRG4e-0000zb-ST for garchives@archives.gentoo.org; Sat, 23 Sep 2006 22:34:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8NMX68L029960; Sat, 23 Sep 2006 22:33:06 GMT Received: from mail44.e.nsc.no (mail44.e.nsc.no [193.213.115.44]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8NMX6Qh011332 for <gentoo-embedded@lists.gentoo.org>; Sat, 23 Sep 2006 22:33:06 GMT Received: from mail.nor.wtbts.org ([213.234.126.131]) by mail44.nsc.no (8.13.8/8.13.5) with ESMTP id k8NMWtaT010377; Sun, 24 Sep 2006 00:32:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.nor.wtbts.org (Postfix) with ESMTP id AA27840FC1; Sun, 24 Sep 2006 00:32:55 +0200 (CEST) Received: from mail.nor.wtbts.org ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06840-04; Sun, 24 Sep 2006 00:32:55 +0200 (CEST) Received: from studio.nylenet (unknown [10.0.25.12]) by mail.nor.wtbts.org (Postfix) with ESMTP id 58CF940DE2; Sun, 24 Sep 2006 00:32:55 +0200 (CEST) Subject: Re: [gentoo-embedded] hardened gcc-4.1 and uclibc From: Natanael Copa <natanael.copa@gmail.com> To: Mike Frysinger <vapier@gentoo.org> Cc: gentoo-embedded@lists.gentoo.org In-Reply-To: <200609231055.01109.vapier@gentoo.org> References: <1158612071.13312.79.camel@localhost> <200609230013.33475.vapier@gentoo.org> <1159022438.4839.2.camel@localhost> <200609231055.01109.vapier@gentoo.org> Content-Type: text/plain Date: Sun, 24 Sep 2006 00:46:54 +0200 Message-Id: <1159051614.14902.5.camel@studio> Precedence: bulk List-Post: <mailto:gentoo-embedded@lists.gentoo.org> List-Help: <mailto:gentoo-embedded+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org> X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at wtbts.no X-Archives-Salt: ae20abc1-511f-41f9-9fa2-7eecdbab5f13 X-Archives-Hash: d7a0146d2eedea69647c45cceae9134e On Sat, 2006-09-23 at 10:55 -0400, Mike Frysinger wrote: > On Saturday 23 September 2006 10:40, Natanael Copa wrote: > > I get this: > > > > Calculating dependencies... done! > > [ebuild NS ] sys-devel/gcc-4.1.1 USE="(-altivec) -bootstrap -build > > -doc -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib) > > -multislot (-n32) (-n64) (-nls) -nocxx -objc -objc++ -objc-gc -test > > -vanilla" 0 kB > > prob because i added gcc/hardened to default-linux/package.use.mask > > should be fixed now Its still not fixed. Note the (-hardened) al-1.5 / # emerge -pv gcc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS ] sys-devel/gcc-4.1.1 USE="(-altivec) -bootstrap -build -doc -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) (-nls) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB Total size of downloads: 0 kB al-1.5 / # emerge -pv \<gcc-4 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/gcc-3.4.6-r1 USE="(-altivec) -bootstrap -boundschecking -build -doc -fortran -gcj -gtk (-hardened*) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) (-nls) -nocxx -nopie -nossp -objc -test% -vanilla" 12,330 kB Total size of downloads: 12,330 kB I removed it from default-linux/package.use.mask manually but the compile died with a stacksmashing attack. I'm not sure if I should report it on bugzilla, since it says that its not supported. stage1/xgcc -Bstage1/ -B/usr/i386-gentoo-linux-uclibc/bin/ -c -march=i386 -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../libcpp/include genrtl.c -o genrtl.o stage1/xgcc -Bstage1/ -B/usr/i386-gentoo-linux-uclibc/bin/ -c -march=i386 -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../libcpp/include /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/ggc-common.c -o ggc-common.o stage1/cc1: stack smashing attack in function ix86_split_to_parts() xgcc: Internal error: Killed (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [ggc-common.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc' make: *** [profiledbootstrap] Error 2 -- gentoo-embedded@gentoo.org mailing list