lib/alloca*: mark ELF stack access flags as nonexecutable
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
This commit is contained in:
@ -40,4 +40,8 @@ p6:
|
|||||||
push %edx
|
push %edx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
/* mark stack as nonexecutable */
|
||||||
|
#if defined __ELF__ && defined __linux__
|
||||||
|
.section .note.GNU-stack,"",@progbits
|
||||||
|
#endif
|
||||||
/* ---------------------------------------------- */
|
/* ---------------------------------------------- */
|
||||||
|
|||||||
@ -28,4 +28,8 @@ p3:
|
|||||||
push %edx
|
push %edx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
/* mark stack as nonexecutable */
|
||||||
|
#if defined __ELF__ && defined __linux__
|
||||||
|
.section .note.GNU-stack,"",@progbits
|
||||||
|
#endif
|
||||||
/* ---------------------------------------------- */
|
/* ---------------------------------------------- */
|
||||||
|
|||||||
@ -35,4 +35,8 @@ p3:
|
|||||||
push %rdx
|
push %rdx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
/* mark stack as nonexecutable */
|
||||||
|
#if defined __ELF__ && defined __linux__
|
||||||
|
.section .note.GNU-stack,"",@progbits
|
||||||
|
#endif
|
||||||
/* ---------------------------------------------- */
|
/* ---------------------------------------------- */
|
||||||
|
|||||||
Reference in New Issue
Block a user