llvm/test/CodeGen/WebAssembly/non-executable-stack.ll
Dan Gohman 2389b80cea [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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257962 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-15 23:59:13 +00:00

10 lines
296 B
LLVM

; 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