aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1/gcc/config/arm/crtn.asm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.2.1/gcc/config/arm/crtn.asm')
-rw-r--r--gcc-4.2.1/gcc/config/arm/crtn.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.2.1/gcc/config/arm/crtn.asm b/gcc-4.2.1/gcc/config/arm/crtn.asm
index 360afae97..84facb933 100644
--- a/gcc-4.2.1/gcc/config/arm/crtn.asm
+++ b/gcc-4.2.1/gcc/config/arm/crtn.asm
@@ -30,6 +30,11 @@
# This exception does not however invalidate any other reasons why
# the executable file might be covered by the GNU General Public License.
#
+/* An executable stack is *not* required for these functions. */
+#if defined(__ELF__) && defined(__linux__)
+.section .note.GNU-stack,"",%progbits
+.previous
+#endif
# This file just makes sure that the .fini and .init sections do in
# fact return. Users may put any desired instructions in those sections.