Support the GNU non-exec stack annotation system
authorDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Thu, 6 Jul 2006 11:43:31 +0000 (11:43 +0000)
committerDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Thu, 6 Jul 2006 11:43:31 +0000 (11:43 +0000)
commitc4597dfe0b0de808b6e024b7d7e898e5ae14de19
tree28da5d4514879b4cdb6de6d88a3abc7a50956329
parent334bc6d828327776ecb7c33b8e77e3e57f0d0d72
Support the GNU non-exec stack annotation system
On recent GNU ELF systems one can mark an object file as not
requiring an executable stack. If all objects- linked into a
program have this note then the program will not use an executable
stack, which is good for security (and some distros have it as a
QA policy). GHC generated code does not need an executable stack
so add the note to the assembly output of the native code
generator (conditional on a configure test).
compiler/nativeGen/AsmCodeGen.lhs
configure.ac