aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/lib1funcs.asm
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@codesourcery.com>2006-11-03 00:59:32 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2006-11-03 00:59:32 +0000
commit978e411ffa21a917971b21f1e68003cbe91a5666 (patch)
tree034daed3d8fa40a96d1f2e843ef5f035c06fe376 /gcc/config/arm/lib1funcs.asm
parent50f606a629ca09f8cbf9c595362ad3e23c79cb5d (diff)
downloadgcc-978e411ffa21a917971b21f1e68003cbe91a5666.zip
gcc-978e411ffa21a917971b21f1e68003cbe91a5666.tar.gz
gcc-978e411ffa21a917971b21f1e68003cbe91a5666.tar.bz2
linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
2006-11-02 Carlos O'Donell <carlos@codesourcery.com> gcc/ * config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1. * arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call file_end_indicate_exec_stack. * arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK): Define as 0. * lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section for a non-executable stack. * crti.asm: Likewise. * crtn.asm: Likewise. * libunwind.S: Likewise. From-SVN: r118445
Diffstat (limited to 'gcc/config/arm/lib1funcs.asm')
-rw-r--r--gcc/config/arm/lib1funcs.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/arm/lib1funcs.asm b/gcc/config/arm/lib1funcs.asm
index 9245b3c..93c0df8 100644
--- a/gcc/config/arm/lib1funcs.asm
+++ b/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. */