]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lb1sf68.asm: Add GNU-stack annotation to avoid executable stack.
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Wed, 19 Nov 2008 16:52:16 +0000 (16:52 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Wed, 19 Nov 2008 16:52:16 +0000 (16:52 +0000)
* config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
executable stack.

Co-Authored-By: Paul Brook <paul@codesourcery.com>
From-SVN: r142007

gcc/ChangeLog
gcc/config/m68k/lb1sf68.asm

index a13bed93db275a6cfb006b0307f5915dc8c8e122..bde88e7d0f2a05b5672dac5419daf90422813620 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
+           Paul Brook  <paul@codesourcery.com>
+
+       * config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
+       executable stack.
+
 2008-11-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
 
        * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs.
index e03b7b30d874737118f48c457a46afa1b5e1eae7..ebfcb88f42db39cc2077a5041947c5502c7e2740 100644 (file)
@@ -4089,3 +4089,8 @@ SYM (__lesf2):
        unlk    a6
        rts
 #endif /* L_lesf2 */
+
+#if defined (__ELF__) && defined (__linux__)
+       /* Make stack non-executable for ELF linux targets.  */
+       .section        .note.GNU-stack,"",@progbits
+#endif