From d97a25fbdd80ad005be41e9d47d6aefe2a5f6cae Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 4 Jan 2011 10:38:52 +0200 Subject: lib/alloca*: mark ELF stack access flags as nonexecutable Signed-off-by: Sergei Trofimovich --- lib/alloca86-bt.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/alloca86-bt.S') diff --git a/lib/alloca86-bt.S b/lib/alloca86-bt.S index 76a85a0..ffad515 100644 --- a/lib/alloca86-bt.S +++ b/lib/alloca86-bt.S @@ -40,4 +40,8 @@ p6: push %edx ret +/* mark stack as nonexecutable */ +#if defined __ELF__ && defined __linux__ + .section .note.GNU-stack,"",@progbits +#endif /* ---------------------------------------------- */ -- cgit v1.3.1