From: Ed Maste Date: Mon, 30 Jun 2014 20:03:02 +0000 (+0000) Subject: objdump: Add test for ELF file with no section table X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=816d9c7b72481de8f723b37e9315be93b4a015ba;p=oota-llvm.git objdump: Add test for ELF file with no section table 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 --- diff --git a/test/Object/Inputs/no-sections.elf-x86-64 b/test/Object/Inputs/no-sections.elf-x86-64 new file mode 100755 index 00000000000..9b8ca2e46c1 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 index 00000000000..5130100d8ee --- /dev/null +++ b/test/Object/objdump-no-sectionheaders.test @@ -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: {{.}}