summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-01-15 23:59:13 +0000
committerDan Gohman <dan433584@gmail.com>2016-01-15 23:59:13 +0000
commit2f301f3e928089694f0e9deb3617cb81ba672320 (patch)
tree7635614f9a3af4fdb524ef618f304ed782aaf879 /llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
parent5be0706ebe1616687ce9bf0e9d558a0bf97b85dc (diff)
downloadbcm5719-llvm-2f301f3e928089694f0e9deb3617cb81ba672320.tar.gz
bcm5719-llvm-2f301f3e928089694f0e9deb3617cb81ba672320.zip
[WebAssembly] Don't create a needless .note.GNU-stack section
WebAssembly's stack will never be executable by default, so it isn't necessary to declare .note.GNU-stack sections to request a non-executable stack. Differential Revision: http://reviews.llvm.org/D15969 llvm-svn: 257962
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/non-executable-stack.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/non-executable-stack.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll b/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
new file mode 100644
index 00000000000..b81063724e9
--- /dev/null
+++ b/llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -asm-verbose=false | FileCheck %s
+
+; Test that we don't emit anything declaring a non-executable stack,
+; because wasm's stack is always non-executable.
+
+target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
+target triple = "wasm32-unknown-unknown"
+
+; CHECK-NOT: .note.GNU-stack
OpenPOWER on IntegriCloud