base/asm-common.h: Include `.note.GNU-stack' section on ELF targets.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Nov 2016 12:22:43 +0000 (12:22 +0000)
committerMark 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

index 08d4b54..946f860 100644 (file)
@@ -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 --------------------------------------------------