diff options
author | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-19 16:52:16 +0000 |
---|---|---|
committer | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-19 16:52:16 +0000 |
commit | d473306bc1e54bd1f0ce113eb77aca6d5aa89026 (patch) | |
tree | 4b8b09498ad8a7910d269399629f2a323356d351 | |
parent | dc941c531880782f49cb8bcf1ae27258797dcad7 (diff) | |
download | gcc-d473306bc1e54bd1f0ce113eb77aca6d5aa89026.tar.gz |
* config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
executable stack.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142007 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m68k/lb1sf68.asm | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a13bed93db2..bde88e7d0f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,10 @@ 2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com> + Paul Brook <paul@codesourcery.com> + + * config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid + executable stack. + +2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com> * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs. diff --git a/gcc/config/m68k/lb1sf68.asm b/gcc/config/m68k/lb1sf68.asm index e03b7b30d87..ebfcb88f42d 100644 --- a/gcc/config/m68k/lb1sf68.asm +++ b/gcc/config/m68k/lb1sf68.asm @@ -4089,3 +4089,8 @@ SYM (__lesf2): unlk a6 rts #endif /* L_lesf2 */ + +#if defined (__ELF__) && defined (__linux__) + /* Make stack non-executable for ELF linux targets. */ + .section .note.GNU-stack,"",@progbits +#endif |