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: "robert at linuxfromscratch dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Jun 2009 22:25:35 -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 robert at linuxfromscratch dot org 2009-06-04 22:25 -------
I've been using a compromise. Glibc's programs can be compiled
with -fstack-protector-all, or whatever other options you may want
(-D_FORTIFY_SOURCE=2, -fPIE, etc), but not the libraries. I use the configparms
file and set build-programs=no to build the libraries
without -fstack-protector, then remove build-programs=no and add 'CFLAGS
+= -fstack-protector-all' to configparms. No patches needed, test suites pass
(remove -fstack-protector during the test suite), no crashes.
--
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.