aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/noexec.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-01-23 17:55:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-01-23 17:55:27 +0000
commit96aa78c8c5ef1a5f268539c9edc86569b436d573 (patch)
treee664056c0f0a8ce32c72d19cf0f0ae1e8eefd038 /test/MC/ELF/noexec.s
parent584520e8e2c1f8cc04bc8dd4dc4ea6c390627317 (diff)
downloadexternal_llvm-96aa78c8c5ef1a5f268539c9edc86569b436d573.zip
external_llvm-96aa78c8c5ef1a5f268539c9edc86569b436d573.tar.gz
external_llvm-96aa78c8c5ef1a5f268539c9edc86569b436d573.tar.bz2
Add support for the --noexecstack option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/noexec.s')
-rw-r--r--test/MC/ELF/noexec.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/MC/ELF/noexec.s b/test/MC/ELF/noexec.s
new file mode 100644
index 0000000..87b6f3a
--- /dev/null
+++ b/test/MC/ELF/noexec.s
@@ -0,0 +1,24 @@
+// RUN: llvm-mc -mc-no-exec-stack -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+// CHECK: # Section 0x00000004
+// CHECK-NEXT: (('sh_name', 0x00000012) # '.note.GNU-stack'
+// CHECK-NEXT: ('sh_type', 0x00000001)
+// CHECK-NEXT: ('sh_flags', 0x00000000)
+// CHECK-NEXT: ('sh_addr', 0x00000000)
+// CHECK-NEXT: ('sh_offset', 0x00000040)
+// CHECK-NEXT: ('sh_size', 0x00000000)
+// CHECK-NEXT: ('sh_link', 0x00000000)
+// CHECK-NEXT: ('sh_info', 0x00000000)
+// CHECK-NEXT: ('sh_addralign', 0x00000001)
+// CHECK-NEXT: ('sh_entsize', 0x00000000)
+// CHECK-NEXT: ),
+
+// CHECK: # Symbol 0x00000004
+// CHECK-NEXT: (('st_name', 0x00000000) # ''
+// CHECK-NEXT: ('st_bind', 0x00000000)
+// CHECK-NEXT: ('st_type', 0x00000003)
+// CHECK-NEXT: ('st_other', 0x00000000)
+// CHECK-NEXT: ('st_shndx', 0x00000004)
+// CHECK-NEXT: ('st_value', 0x0000000000000000)
+// CHECK-NEXT: ('st_size', 0x0000000000000000)
+// CHECK-NEXT: ),