summaryrefslogtreecommitdiff
path: root/test/ELF/dynstr-no-rosegment.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/dynstr-no-rosegment.s')
-rw-r--r--test/ELF/dynstr-no-rosegment.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/dynstr-no-rosegment.s b/test/ELF/dynstr-no-rosegment.s
new file mode 100644
index 0000000000000..0e12721dac442
--- /dev/null
+++ b/test/ELF/dynstr-no-rosegment.s
@@ -0,0 +1,12 @@
+# Verify that a .dynstr in the .text segment has null byte terminators
+
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: ld.lld %t.o -no-rosegment -o %t.so -shared
+# RUN: llvm-objdump %t.so -s -j .dynstr | FileCheck %s
+
+# CHECK: 00666f6f 00 .foo.
+
+.globl foo
+foo:
+ ret