This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/7065] Support building glibc with -fstack-protector or -fstack-protector-all
- From: "nix at esperi dot org dot uk" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Dec 2008 00:53:52 -0000
- Subject: [Bug libc/7065] Support building glibc with -fstack-protector or -fstack-protector-all
- References: <20081204003831.7065.nix@esperi.org.uk>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From nix at esperi dot org dot uk 2008-12-04 00:53 -------
test environment: 2.6.27.7 kernel+headers, glibc 2.8, GCC 4.3.3 20081121
(prerelease), binutils 2.19.
config flags (my standard set for this machine):
/usr/packages/glibc/2.9/configure --prefix=/usr --enable-shared \
--enable-profile --disable-bounded --enable-bind-now \
--enable-add-ons=nptl,libidn --enable-kernel=2.6.25 \
--enable-check-abi=warn --enable-omitfp \
--enable-stackguard-randomization TIMEOUTFACTOR=5
Below, PASS means 'baseline test failures only'. (I also compared
configure output to verify that -fstack-protector addition did not
change the results of any configure tests, and verified that the
appropriate -fstack-protector actually appeared in gcc commandlines at
the appropriate times.)
baseline: PASS, by definition
patch applied, no flags specified: PASS
-fstack-protector in CFLAGS: PASS
-fstack-protector-all in CFLAGS: one failure due to #7066, buffer overrun
--without-stack-protector: PASS
--with-stack-protector: PASS
--with-stack-protector=all: one failure due to #7066, buffer overrun
Test failures for baseline (unpatched):
math/test-ildoubl.out:
testing long double (inline functions)
Failure: Test: expm1 (1) == M_El - 1.0
Result:
is: 1.71828182845904523532e+00 0xd.bf0a8b14576953500000p-3
should be: 1.71828182845904523543e+00 0xd.bf0a8b14576953600000p-3
difference: 1.08420217248550443401e-19 0x8.00000000000000000000p-66
ulp : 1.0000
max.ulp : 0.0000
Maximal error of `expm1'
is : 1 ulp
accepted: 0 ulp
Test suite completed:
3618 test cases plus 3005 tests for exception flags executed.
2 errors occurred.
elf/check-localplt.out:
--- ../scripts/data/localplt-i386-linux-gnu.data 2006-01-11
21:06:19.000000000 +0000
+++ - 2008-11-30 20:52:09.962033876 +0000
@@ -1,4 +1,5 @@
libc.so: _Unwind_Find_FDE
+libc.so: __bzero
libc.so: calloc
libc.so: free
libc.so: malloc
(This looks like something missing from localplt-i386-linux-gnu.data to
me, not a bug.)
(Holes in test coverage: not tested with a GCC too old to support
-fstack-protector. Static testing not performed: see #7064.)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=7065
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.