summaryrefslogtreecommitdiff
path: root/test/ELF/invalid/invalid-e_shnum.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/invalid/invalid-e_shnum.s')
-rw-r--r--test/ELF/invalid/invalid-e_shnum.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ELF/invalid/invalid-e_shnum.s b/test/ELF/invalid/invalid-e_shnum.s
new file mode 100644
index 0000000000000..0c720ffa1713e
--- /dev/null
+++ b/test/ELF/invalid/invalid-e_shnum.s
@@ -0,0 +1,3 @@
+## Spec says that "If a file has no section header table, e_shnum holds the value zero.", though
+## in this test case it holds non-zero and lld used to crash.
+# RUN: ld.lld %p/Inputs/invalid-e_shnum.elf -o %t2