diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 17:55:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 17:55:27 +0000 |
commit | 96aa78c8c5ef1a5f268539c9edc86569b436d573 (patch) | |
tree | e664056c0f0a8ce32c72d19cf0f0ae1e8eefd038 /test/MC/ELF/noexec.s | |
parent | 584520e8e2c1f8cc04bc8dd4dc4ea6c390627317 (diff) | |
download | external_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.s | 24 |
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: ), |