objdump: Add test for ELF file with no section table
authorEd Maste <emaste@freebsd.org>
Mon, 30 Jun 2014 20:03:02 +0000 (20:03 +0000)
committerEd Maste <emaste@freebsd.org>
Mon, 30 Jun 2014 20:03:02 +0000 (20:03 +0000)
This is a test for the fix in r211904.

Differential Revision: http://reviews.llvm.org/D4349

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212059 91177308-0d34-0410-b5e6-96231b3b80d8

test/Object/Inputs/no-sections.elf-x86-64 [new file with mode: 0755]
test/Object/objdump-no-sectionheaders.test [new file with mode: 0644]

diff --git a/test/Object/Inputs/no-sections.elf-x86-64 b/test/Object/Inputs/no-sections.elf-x86-64
new file mode 100755 (executable)
index 0000000..9b8ca2e
Binary files /dev/null and b/test/Object/Inputs/no-sections.elf-x86-64 differ
diff --git a/test/Object/objdump-no-sectionheaders.test b/test/Object/objdump-no-sectionheaders.test
new file mode 100644 (file)
index 0000000..5130100
--- /dev/null
@@ -0,0 +1,6 @@
+; RUN: llvm-objdump -h %p/Inputs/no-sections.elf-x86-64 \
+; RUN:              | FileCheck %s
+
+; CHECK: Sections:
+; CHECK: Idx Name          Size      Address          Type
+; CHECK-NOT: {{.}}