summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-09-16 17:05:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-09-16 17:05:55 +0000
commit34e3d0cfe525b3067856c8978174fec75223b16a (patch)
treec6077827833d32685023dcd46a83199729f2fd0a /test
parent2ea2ac798b07855bd950e848d73b8bea6bcdea4b (diff)
downloadllvm-34e3d0cfe525b3067856c8978174fec75223b16a.tar.gz
llvm-34e3d0cfe525b3067856c8978174fec75223b16a.tar.bz2
llvm-34e3d0cfe525b3067856c8978174fec75223b16a.tar.xz
Make sure that names like .note.GNU-stack are accepted as valid section names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ELF/section.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s
new file mode 100644
index 0000000000..4622cb4159
--- /dev/null
+++ b/test/MC/ELF/section.s
@@ -0,0 +1,11 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+// Test that these names are accepted.
+
+.section .note.GNU-stack,"",@progbits
+.section .note.GNU-,"",@progbits
+.section -.note.GNU,"",@progbits
+
+// CHECK: ('sh_name', 18) # '.note.GNU-stack'
+// CHECK: ('sh_name', 34) # '.note.GNU-'
+// CHECK: ('sh_name', 45) # '-.note.GNU'