From: Mark Wooding Date: Sat, 5 Nov 2016 12:22:43 +0000 (+0000) Subject: base/asm-common.h: Include `.note.GNU-stack' section on ELF targets. X-Git-Tag: 2.3.0~25 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/1aa5bfa88ec9a7eeeff47e076242b2e9eda1d538 base/asm-common.h: Include `.note.GNU-stack' section on ELF targets. This will ensure that Catacomb doesn't force an executable stack on processes using it. Oops. --- diff --git a/base/asm-common.h b/base/asm-common.h index 08d4b548..946f8608 100644 --- 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 --------------------------------------------------