]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector...
authorChung-Lin Tang <cltang@codesourcery.com>
Tue, 2 Nov 2010 10:34:54 +0000 (10:34 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Tue, 2 Nov 2010 10:34:54 +0000 (10:34 +0000)
* Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
explicitly disable stack protection when building libgcc.
(CRTSTUFF_CFLAGS): Same, for crtbegin/end.

From-SVN: r166173

gcc/ChangeLog
gcc/Makefile.in

index eedc19b38314c19514c98c39928f6a8a113c4496..4e1faee4e4737b71ace250143db0078177f5adfe 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-02  Chung-Lin Tang <cltang@codesourcery.com>
+
+       * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
+       explicitly disable stack protection when building libgcc.
+       (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
+
 2010-11-01  Jason Merrill  <jason@redhat.com>
 
        * fold-const.c (fold_indirect_ref_1): Handle folding
index 898e96224fbb739b1be16ae5dcde9aa9171ef5d6..922b13283667d30ee5ce864d1a5dbe3cb51dd928 100644 (file)
@@ -653,6 +653,7 @@ LIBGCC2_DEBUG_CFLAGS = -g
 LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
                 $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) \
                 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
+                -fno-stack-protector \
                 $(INHIBIT_LIBC_CFLAGS)
 
 # Additional options to use when compiling libgcc2.a.
@@ -666,6 +667,7 @@ TARGET_LIBGCC2_CFLAGS =
 CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
   -finhibit-size-directive -fno-inline -fno-exceptions \
   -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
+  -fno-stack-protector \
   $(INHIBIT_LIBC_CFLAGS)
 
 # Additional sources to handle exceptions; overridden by targets as needed.