Gentoo Archives: gentoo-hardened

From: basile <basile@××××××××××××××.edu>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] NOTICE: GCC 4.3.4 going stable on Hardened
Date: Thu, 15 Oct 2009 15:44:37
Message-Id: 4AD7435D.8070805@opensource.dyc.edu
In Reply to: Re: [gentoo-hardened] NOTICE: GCC 4.3.4 going stable on Hardened by Ed W
1 Ed W wrote:
2 > Gordon Malm wrote:
3 >> Hello Hardened users, this is just a quick heads up. GCC 4.3.4 will
4 >> be going stable on hardened profiles shortly. Unlike Hardened GCC
5 >> 3.4.6, this version lacks default SSP building. However,
6 >> FORTIFY_SOURCE=2 and -fno-strict-overflow are now enabled by
7 >> default. Other Hardened compiler features (ex. default relro, bind
8 >> now & pic/pie building) remain enabled - no change from 3.4.6.
9 >>
10 >> It is regretable this must be done before GCC4 is SSP-by-default
11 >> enabled. However, more and more packages require the newer GCC. The
12 >> stable GCC on Hardened has been GCC 3.4.6 for a long time, but this
13 >> has become an untenable situation. GCC4 SSP-by-default works and
14 >> will be added in a later revision - some GCC4+SSP bugs in grub and
15 >> glibc also remain to be fixed.
16 >>
17 >>
18 >
19 > Anyone got any empirical reports on upgrading a uclibc hardened
20 > system? Lack of TLS in uclibc appears to be a potential issue?
21 >
22 > Natanael Copa has previously reported very widespread success using
23 > gcc 4.4.1 + uclibc with apparently fairly minimal additional patches?
24 > I guess gcc 4.4 isn't yet stable on any profiles, but does gcc4.4 buy
25 > us anything generally in terms of getting hardened+ssp stable?
26 >
27 > Cheers
28 >
29 > Ed W
30
31 Yesterday I tried compiling gcc-4.3.2-r3 on a stock gentoo hardened
32 uclibc system (uclibc-0.9.28.3-r7) and hit all the bugs I remembered
33 hitting when I was helping Magnus with testing gcc-4* on uclibc. (Like
34 the fenv.h issue).
35
36 The best success I've had is using the toolchain from the hardened-dev
37 overlay. This includes upgrading both gcc and uclibc: gcc-4.4.1-r2,
38 uclibc-0.9.30.1-r1, binutils-2.18-r3. I can emerge -e world with only
39 two issue, sandbox and python. Take a look at bug 275094 for some clues
40 on how to deal with python. I haven't really tackled sandbox yet.
41
42 Hope this helps.
43
44 --
45
46 Anthony G. Basile, Ph.D.
47 Chair of Information Technology
48 D'Youville College
49 Buffalo, NY 14201
50 USA
51
52 (716) 829-8197

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-hardened] NOTICE: GCC 4.3.4 going stable on Hardened Ed W <lists@××××××××××.com>
Re: [gentoo-hardened] NOTICE: GCC 4.3.4 going stable on Hardened Ed W <lists@××××××××××.com>