[LLVMbugs] [Bug 8786] New: Checking whether libc provides ssp during configure doesn't work well for linux
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 13 23:32:08 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8786
Summary: Checking whether libc provides ssp during configure
doesn't work well for linux
Product: tools
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: woongsik76.choi at gmail.com
CC: llvmbugs at cs.uiuc.edu
llvm-gcc/gcc/configure script checks glibc version to decide whether glibc
provides ssp routines. The check is performed with egrep as follows:
# glibc 2.4 and later provides __stack_chk_fail and
# either __stack_chk_guard, or TLS access to stack guard canary.
if test -f $glibc_header_dir/features.h \
&& $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__ ...
...
In the above code, "[ ]" pattern consists of bunch of spaces.
However, it should be a tab and a space to correctly match both tabs and spaces
in features.h.
I have attached a patch for llvm-gcc/gcc/configure and
llvm-gcc/gcc/configure.ac to solve this small problem.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list