aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2014-12-21 23:14:02 -0600
committerBrent Cook <bcook@openbsd.org>2014-12-22 23:04:47 -0600
commit04158cd40e184e2325a7a0e5fef232cce038cc4b (patch)
tree06f5f4b7ae29efbfe76a976754bd9124ad9e1d18 /apps
parent8c6c07c5ba7e4f862a4f70b2f1bf7c1fc7f968f2 (diff)
downloadportable-04158cd40e184e2325a7a0e5fef232cce038cc4b.tar.gz
portable-04158cd40e184e2325a7a0e5fef232cce038cc4b.tar.bz2
portable-04158cd40e184e2325a7a0e5fef232cce038cc4b.zip
do not mark GNU_STACK WX in ELFs generated from assembly
When generating ELF objects from assembly, gcc and clang mark the GNU_STACK program headers as RWX by default. This is a security issue, so we make sure it is marked only RW. This modifies Anthony G. Basile's original patch for Linux to set .note.GNU-stack whenever the assembler supports it. It is surprising that any modern toolchain would enable an executable stack without an explicit request. The number of programs that need an executable stack is surely much smaller than the number of programs that include assembly.
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions