re PR target/38627 (SuperH libgcc.a lacks .note.GNU-stack markings in math funcs)
authorMike Frysinger <vapier@gentoo.org>
Fri, 17 Apr 2009 22:20:40 +0000 (22:20 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Fri, 17 Apr 2009 22:20:40 +0000 (22:20 +0000)
PR target/38627
* config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
* config/sh/linux-atomic.asm: Likewise.

From-SVN: r146297

gcc/ChangeLog
gcc/config/sh/lib1funcs.asm
gcc/config/sh/linux-atomic.asm

index 41afc3ada31139a765c8b4ac97d5fe0832a0cfa7..7f550ea897246c2125bdbe9de3df7fcb24c96b5e 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-17  Mike Frysinger  <vapier@gentoo.org>
+
+       PR target/38627
+       * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
+       * config/sh/linux-atomic.asm: Likewise.
+
 2009-04-17  Diego Novillo  <dnovillo@google.com>
 
        * except.c (debug_eh_tree): New.
index 1f36f73dbc3e17697fa9e3ec8e0d76d61c52f4ed..2f0ca16cd91937963a711b37930710552517b6d8 100644 (file)
@@ -30,6 +30,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 !! recoded in assembly by Toshiyasu Morita
 !! tm@netcom.com
 
+#if defined(__ELF__) && defined(__linux__)
+.section .note.GNU-stack,"",%progbits
+.previous
+#endif
+
 /* SH2 optimizations for ___ashrsi3, ___ashlsi3, ___lshrsi3 and
    ELF local label prefixes by J"orn Rennecke
    amylaar@cygnus.com  */
index bf95970424c97a4a8264e14a88a8a34dbef7c8f9..fd3a7720e995dfc3d5aa91ea0d1fb9b4b47e0a64 100644 (file)
@@ -135,4 +135,7 @@ ATOMIC_FETCH_AND_COMBOP(nand,and,not,1,b,extu.b)
 ATOMIC_FETCH_AND_COMBOP(nand,and,not,2,w,extu.w)
 ATOMIC_FETCH_AND_COMBOP(nand,and,not,4,l,mov)
 
+.section .note.GNU-stack,"",%progbits
+.previous
+
 #endif /* ! __SH5__ */