summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-11-21 22:19:32 +0000
committerRui Ueyama <ruiu@google.com>2015-11-21 22:19:32 +0000
commite79b09a6163f3350757cd63087617d0cb77c4114 (patch)
tree44da9e90900f29248b409ce7c74a78b2fd0f9fee /llvm/test/Transforms
parent6290dbc0f7f71dbf9e5408a1b4222cbbfba43bdb (diff)
downloadbcm5719-llvm-e79b09a6163f3350757cd63087617d0cb77c4114.tar.gz
bcm5719-llvm-e79b09a6163f3350757cd63087617d0cb77c4114.zip
ELF: Make .note.GNU-stack more compatible with traditional linkers.
With this patch, lld creates PT_GNU_STACK segments only when all input files have .note.GNU-stack sections. This is in line with other linkers with a minor difference (we don't care about .note.GNU-stack rwx bits as you can always remove .note.GNU-stack sections instead of setting x bit.) At least, NetBSD loader does not understand PT_GNU_STACK segments and reject any executables that have the section. This patch makes lld compatible with such operating systems. llvm-svn: 253797
Diffstat (limited to 'llvm/test/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud