History

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

Sergei Trofimovich committed 15 years ago

Commit d97a25f1 parent 28883183 files · +12 −0Browse files

Unified · Split

3 files
  1. lib/alloca86-bt.S +4 −0
  2. lib/alloca86.S +4 −0
  3. lib/alloca86_64.S +4 −0
lib/alloca86-bt.S+4−0
@@ -40,4 +40,8 @@ p6: · 39 unmodified lines
4040 push %edx
4141 ret
4242
43+/* mark stack as nonexecutable */
44+#if defined __ELF__ && defined __linux__
45+ .section .note.GNU-stack,"",@progbits
46+#endif
4347 /* ---------------------------------------------- */
lib/alloca86.S+4−0
@@ -28,4 +28,8 @@ p3: · 27 unmodified lines
2828 push %edx
2929 ret
3030
31+/* mark stack as nonexecutable */
32+#if defined __ELF__ && defined __linux__
33+ .section .note.GNU-stack,"",@progbits
34+#endif
3135 /* ---------------------------------------------- */
lib/alloca86_64.S+4−0
@@ -35,4 +35,8 @@ p3: · 34 unmodified lines
3535 push %rdx
3636 ret
3737
38+/* mark stack as nonexecutable */
39+#if defined __ELF__ && defined __linux__
40+ .section .note.GNU-stack,"",@progbits
41+#endif
3842 /* ---------------------------------------------- */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t