public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Peter S. Mazinger" <ps.m@gmx.net>
To: gentoo-embedded@lists.gentoo.org
Cc: Mike Frysinger <vapier@gentoo.org>
Subject: Re: [gentoo-embedded] hardened gcc-4.1 and uclibc
Date: Tue, 3 Oct 2006 08:13:45 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0610030811150.23267-100000@lnx.bridge.intra> (raw)
In-Reply-To: <1159051614.14902.5.camel@studio>

On Sun, 24 Sep 2006, Natanael Copa wrote:

> 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

hardened for gcc-4.x is not done at all (not even for a glibc env), 
the above bug can be solved though by adapting the patch applied to 
gcc-3.4, search toolchain.eclass for ix86_split_to_parts (that comment is 
wrong there and the conditions as well, the patch is needed in any case, 
if the building compiler is hardened.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

-- 
gentoo-embedded@gentoo.org mailing list



      parent reply	other threads:[~2006-10-04  7:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-18 20:41 [gentoo-embedded] hardened gcc-4.1 and uclibc Natanael Copa
2006-09-23  4:13 ` Mike Frysinger
2006-09-23 12:49   ` René Rhéaume
2006-09-23 14:40   ` Natanael Copa
2006-09-23 14:55     ` Mike Frysinger
2006-09-23 22:46       ` Natanael Copa
2006-09-25 13:52         ` Mike Frysinger
2006-09-27 12:48           ` Natanael Copa
2006-10-03  6:13         ` Peter S. Mazinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0610030811150.23267-100000@lnx.bridge.intra \
    --to=ps.m@gmx.net \
    --cc=gentoo-embedded@lists.gentoo.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox