summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64bin0 -> 1024 bytes
-rw-r--r--llvm/test/Object/no-section-header-string-table.test10
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 b/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64
new file mode 100644
index 00000000000..9024ad9b757
--- /dev/null
+++ b/llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64
Binary files differ
diff --git a/llvm/test/Object/no-section-header-string-table.test b/llvm/test/Object/no-section-header-string-table.test
new file mode 100644
index 00000000000..1f449328cab
--- /dev/null
+++ b/llvm/test/Object/no-section-header-string-table.test
@@ -0,0 +1,10 @@
+RUN: llvm-readobj %p/Inputs/no-section-header-string-table.elf-x86-64 --sections \
+RUN: | FileCheck %s
+
+CHECK: Type: SHT_PROGBITS (0x1)
+CHECK: Type: SHT_PROGBITS (0x1)
+CHECK: Type: SHT_PROGBITS (0x1)
+CHECK: Type: SHT_RELA (0x4)
+CHECK: Type: SHT_SYMTAB (0x2)
+CHECK: Type: SHT_STRTAB (0x3)
+CHECK: Type: SHT_STRTAB (0x3)
OpenPOWER on IntegriCloud