aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1/gcc/config/arm/lib1funcs.asm
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/lib1funcs.asm
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/lib1funcs.asm')
-rw-r--r--gcc-4.2.1/gcc/config/arm/lib1funcs.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.2.1/gcc/config/arm/lib1funcs.asm b/gcc-4.2.1/gcc/config/arm/lib1funcs.asm
index 2792b35e3..7e0831ade 100644
--- a/gcc-4.2.1/gcc/config/arm/lib1funcs.asm
+++ b/gcc-4.2.1/gcc/config/arm/lib1funcs.asm
@@ -27,6 +27,13 @@ You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
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
+
/* ------------------------------------------------------------------------ */
/* We need to know what prefix to add to function names. */