OSDN Git Service

PR target/38627
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 2009 22:20:40 +0000 (22:20 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 2009 22:20:40 +0000 (22:20 +0000)
* config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
* config/sh/linux-atomic.asm: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146297 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 41afc3a..7f550ea 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 1f36f73..2f0ca16 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 bf95970..fd3a772 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__ */