~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aec741b
)
base/asm-common.h: Include `.note.GNU-stack' section on ELF targets.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 5 Nov 2016 12:22:43 +0000
(12:22 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 3 Apr 2017 08:55:11 +0000
(09:55 +0100)
This will ensure that Catacomb doesn't force an executable stack on
processes using it. Oops.
base/asm-common.h
patch
|
blob
|
blame
|
history
diff --git
a/base/asm-common.h
b/base/asm-common.h
index
08d4b54
..
946f860
100644
(file)
--- a/
base/asm-common.h
+++ b/
base/asm-common.h
@@
-396,4
+396,9
@@
name:
# define SIZE_OBJ(name)
#endif
+#if __ELF__ && defined(WANT_EXECUTABLE_STACK)
+ .pushsection .note.GNU-stack, "", _SECTTY(progbits)
+ .popsection
+#endif
+
///----- That's all, folks --------------------------------------------------