aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1/gcc/config/arm/libunwind.S
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2010-04-29 13:29:40 -0700
committerJing Yu <jingyu@google.com>2010-04-29 13:29:40 -0700
commit7bbf60e7d1d437a9b07a900c2e4b5e6a431020b1 (patch)
tree98c22a443b3d793b5368be6723a6b0e2f4d5025a /gcc-4.2.1/gcc/config/arm/libunwind.S
parent2c20a1914acb75c3c654893a490b96b2df2edc7a (diff)
downloadtoolchain_gcc-7bbf60e7d1d437a9b07a900c2e4b5e6a431020b1.tar.gz
toolchain_gcc-7bbf60e7d1d437a9b07a900c2e4b5e6a431020b1.tar.bz2
toolchain_gcc-7bbf60e7d1d437a9b07a900c2e4b5e6a431020b1.zip
Add GNU-stack annotation to Android code.
Change-Id: I3554e76370446fe42a2624114b9c8e1d8a3cec28
Diffstat (limited to 'gcc-4.2.1/gcc/config/arm/libunwind.S')
-rw-r--r--gcc-4.2.1/gcc/config/arm/libunwind.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.2.1/gcc/config/arm/libunwind.S b/gcc-4.2.1/gcc/config/arm/libunwind.S
index 81e4236f6..47625e3c1 100644
--- a/gcc-4.2.1/gcc/config/arm/libunwind.S
+++ b/gcc-4.2.1/gcc/config/arm/libunwind.S
@@ -26,6 +26,12 @@
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
+/* An executable stack is *not* required for these functions. */
+#if defined(__ELF__) && defined(__linux__)
+.section .note.GNU-stack,"",%progbits
+.previous
+#endif
+
#ifndef __symbian__
#include "lib1funcs.asm"