From 816d9c7b72481de8f723b37e9315be93b4a015ba Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 30 Jun 2014 20:03:02 +0000 Subject: [PATCH] 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 --- test/Object/Inputs/no-sections.elf-x86-64 | Bin 0 -> 2912 bytes test/Object/objdump-no-sectionheaders.test | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100755 test/Object/Inputs/no-sections.elf-x86-64 create mode 100644 test/Object/objdump-no-sectionheaders.test 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 0000000000000000000000000000000000000000..9b8ca2e46c13ba5de1b8a8f33d14f090901cefc8 GIT binary patch literal 2912 zcmcIlU2GIp6h6D#E-Mzg7z>+7(n)L+R64t}ZCPBw%(exl+7JXA5(wGd?oPWSyR(~_ zY59qN$ri&{8yn=o_+U&-)cDl+U?A6E>;rtVBo`Tt4~f(`B}dWRwolR1`lWxe z<~*rY&-%7Ramah<(^?14;(+5`m_n1a@n25Szd$=ybDq)Mzv@vWbY?QBLcJ5U`klLt zhWqo7dv(bDqy8?^bkEl}QeYi6t?h8*hnauKn_E+u9cUU(_(sQ!R;`7wWG6ZsmypJK zqA?XlrsKbU+uVkh@4{SbJ09mz)(+!r6F!dgXTnHw(4D)GYFxW8w^))2 z;W9~H&*_%V6jIktucCn{?rV26cYMJ;uesmXCvh%k$g8>A>h5jaOzFU!rWcFljnbjA zRm`u18Oq1j9l6fnm#S57H=H)*a^s>lRjmgz=(rIg=lJh*81@qvc18lY9^UZ)-xGo7 z=)BSa*n%}TB8vZ=@91vu9S-{fEh|DZ*r5Ys>+z-g>I+0jtq#BC?_U+{n-08KZGNYT zd`kqYFcGfhw(wJJ5^?{ucqU}%$Auymh<2Jp)QS03GU3+UMwzhSR|(kvlCTm`3D`f7 z@O{5Z04rGwu$SYb93vbB4{qN3uO8>$ou3CX9L0KxJ7Jv|$ob>4GJaP$A6y4!i+L|_ z`#T;N!~ZW7_v!NdZ*#sMaQvL(X^toO`ipU)6&X+M;I~#%vYqTmQI9@LS6wt`k4Lkm z{HC60&Tg8#5Q*;QYGu; z3VL4JȌb}Za5kPQ=W z$O_12+0o@x-(Z)M9RqpH9G44Oy8v?jh-n`wdFWVPWJ0%W1Mf`MjT>oPuypqEpmd=)p9F{3NURp23 Oh>acTOz5V=59Hs3@F(E_ literal 0 HcmV?d00001 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: {{.}}