lib/alloca*: mark ELF stack access flags as nonexecutable

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
master
Sergei Trofimovich 2011-01-04 10:38:52 +02:00
parent 288831854b
commit d97a25fbdd
3 changed files with 12 additions and 0 deletions

View File

@ -40,4 +40,8 @@ p6:
push %edx
ret
/* mark stack as nonexecutable */
#if defined __ELF__ && defined __linux__
.section .note.GNU-stack,"",@progbits
#endif
/* ---------------------------------------------- */

View File

@ -28,4 +28,8 @@ p3:
push %edx
ret
/* mark stack as nonexecutable */
#if defined __ELF__ && defined __linux__
.section .note.GNU-stack,"",@progbits
#endif
/* ---------------------------------------------- */

View File

@ -35,4 +35,8 @@ p3:
push %rdx
ret
/* mark stack as nonexecutable */
#if defined __ELF__ && defined __linux__
.section .note.GNU-stack,"",@progbits
#endif
/* ---------------------------------------------- */