diff options
author | Jing Yu <jingyu@google.com> | 2010-04-29 13:29:40 -0700 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2010-04-29 13:29:40 -0700 |
commit | 7bbf60e7d1d437a9b07a900c2e4b5e6a431020b1 (patch) | |
tree | 98c22a443b3d793b5368be6723a6b0e2f4d5025a /gcc-4.2.1/gcc/config/arm/crtn.asm | |
parent | 2c20a1914acb75c3c654893a490b96b2df2edc7a (diff) | |
download | toolchain_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/crtn.asm')
-rw-r--r-- | gcc-4.2.1/gcc/config/arm/crtn.asm | 5 |
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. |