This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] GNU libc __stack_chk_fail detection
On Sat, Apr 28, 2007 at 10:01:47PM +0000, Joseph S. Myers wrote:
> On Sat, 28 Apr 2007, Aurelien Jarno wrote:
>
> > I think the current test to detect GNU libc __stack_chk_fail is not
> > correct. It uses *-*linux* to match the Linux targets, but they are not
> > necessarily using a GNU libc (think of uClibc for example). On the
>
> But uClibc includes support for __stack_chk_fail, so *-*-linux-uclibc*
> should be accepted here (and the presumption is that *-*-linux* uses
> either glibc or uClibc). If the header check fails to detect support in
> uClibc, that's simply a separate bug or missing feature in this check.
>
Ok, I didn't know about that. Another try then, it should detect any
system using a Linux kernel, any system using a GNU libc, and Hurd.
Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac (révision 124260)
+++ gcc/configure.ac (copie de travail)
@@ -3394,7 +3394,7 @@
gcc_cv_libc_provides_ssp,
[gcc_cv_libc_provides_ssp=no
case "$target" in
- *-*-linux*)
+ *-*-linux* | *-*-*-gnu* | *-*-gnu)
if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
if test "x$with_sysroot" = x; then
glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net