llvm-project/llvm/tools
James Henderson be39e398e9 [llvm-readelf]Print filename for multiple inputs and fix formatting regression
This patch addresses two closely related bugs:
https://bugs.llvm.org/show_bug.cgi?id=42930 and
https://bugs.llvm.org/show_bug.cgi?id=42931.

GNU readelf prints the file name for every input unless there is only
one input and that input is not an archive. This patch adds the printing
for multiple inputs. A previous change did it for archives, but
introduced a regression with GNU compatibility for single-output
formatting, resulting in a spurious initial blank line. This is fixed in
this patch too.

Reviewed by: grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D65953

llvm-svn: 368435
2019-08-09 12:30:08 +00:00
..
bugpoint Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
bugpoint-passes Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
dsymutil DebugInfo/DWARF: Normalize DWARFObject members on the DWARF spec section names 2019-08-07 17:18:11 +00:00
gold Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llc Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
lli Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-ar Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-as Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-as-fuzzer Fix some include order and file headers issues. NFC 2019-02-21 07:42:31 +00:00
llvm-bcanalyzer [llvm-bcanalyzer] Refactor and move to libLLVMBitReader 2019-07-08 02:06:34 +00:00
llvm-c-test llvm-c-test avoid calling malloc(0) 2019-07-04 14:36:34 +00:00
llvm-cat Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-cfi-verify Revert "[llvm-objdump] Re-commit r367284." 2019-08-05 08:52:28 +00:00
llvm-config Re-commit: r366610 and r366612: Expand pseudo-components before embedding in llvm-config 2019-07-19 22:46:47 +00:00
llvm-cov Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
llvm-cvtres Share /machine: handling code with llvm-cvtres too 2019-06-12 11:32:43 +00:00
llvm-cxxdump Break false dependencies on target libraries 2019-05-23 23:02:56 +00:00
llvm-cxxfilt [binutils] Add response file option to help and docs 2019-06-21 11:49:20 +00:00
llvm-cxxmap Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-diff Fix some include order and file headers issues. NFC 2019-02-21 07:42:31 +00:00
llvm-dis Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-dwarfdump Reland "[DwarfDebug] Dump call site debug info" 2019-07-31 16:51:28 +00:00
llvm-dwp Switch LLVM to use 64-bit offsets (2/5) 2019-08-06 10:49:40 +00:00
llvm-elfabi Fix some include order and file headers issues. NFC 2019-02-21 07:42:31 +00:00
llvm-exegesis Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-extract Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-go [tests][go]Add -stdlib=libc++ to build GO test if LLVM is built with libc++ 2019-05-16 13:32:55 +00:00
llvm-isel-fuzzer Break a couple more false dependencies on target libraries 2019-06-10 23:52:38 +00:00
llvm-itanium-demangle-fuzzer Fix file header issues in fuzzers. NFC 2019-02-21 07:57:14 +00:00
llvm-jitlink [JITLink][ORC] Add EHFrameRegistrar interface, use in EHFrameRegistrationPlugin. 2019-07-04 00:05:12 +00:00
llvm-jitlistener Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-link Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-lipo [llvm-lipo] Implement -segalign 2019-08-05 19:06:55 +00:00
llvm-lto Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-lto2 Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-mc [llvm-mc] Add reportWarning() to MCContext 2019-08-08 19:13:23 +00:00
llvm-mc-assemble-fuzzer Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-mc-disassemble-fuzzer Fix file header issues in fuzzers. NFC 2019-02-21 07:57:14 +00:00
llvm-mca [MCA] Add flag -show-encoding to llvm-mca. 2019-08-09 11:26:27 +00:00
llvm-microsoft-demangle-fuzzer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-modextract Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-mt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-nm Revert [tools] [llvm-nm] Default to reading from stdin not a.out 2019-07-16 15:33:43 +00:00
llvm-objcopy [llvm-strip] Support --strip-sections 2019-08-08 00:35:16 +00:00
llvm-objdump Revert "[llvm-objdump] Re-commit r367284." 2019-08-05 08:52:28 +00:00
llvm-opt-fuzzer Break a couple more false dependencies on target libraries 2019-06-10 23:52:38 +00:00
llvm-opt-report Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-pdbutil Changing representation of .cv_def_range directives in Codeview debug info assembly format for better readability 2019-08-05 14:16:58 +00:00
llvm-profdata Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-rc Fix typos: (re)?sor?uce -> (re)?source 2019-04-26 05:56:23 +00:00
llvm-readobj [llvm-readelf]Print filename for multiple inputs and fix formatting regression 2019-08-09 12:30:08 +00:00
llvm-reduce Fix -DBUILD_SHARED_LIBS=ON build after rL368358 2019-08-08 23:00:28 +00:00
llvm-rtdyld Break false dependencies on target libraries 2019-05-23 23:02:56 +00:00
llvm-shlib cmake: Add INSTALL_WITH_TOOLCHAIN option to add_*_library macros 2019-07-12 14:40:18 +00:00
llvm-size [binutils] Add response file option to help and docs 2019-06-21 11:49:20 +00:00
llvm-special-case-list-fuzzer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-split Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-stress Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-strings [binutils] Add response file option to help and docs 2019-06-21 11:49:20 +00:00
llvm-symbolizer llvm-symbolizer: Untag addresses in object files by default. 2019-08-05 20:59:25 +00:00
llvm-undname llvm-undname: Add a -raw-file flag to pass a raw buffer to microsoftDemangle 2019-04-16 12:51:40 +00:00
llvm-xray Switch LLVM to use 64-bit offsets (2/5) 2019-08-06 10:49:40 +00:00
llvm-yaml-numeric-parser-fuzzer Fix file header issues in fuzzers. NFC 2019-02-21 07:57:14 +00:00
lto cmake: Add INSTALL_WITH_TOOLCHAIN option to add_*_library macros 2019-07-12 14:40:18 +00:00
msbuild vs integration: bump version nbr 2019-06-19 07:39:53 +00:00
obj2yaml [yaml2obj/obj2yaml] - Add a basic support for extended section indexes. 2019-08-08 09:49:05 +00:00
opt Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
opt-viewer [opt-viewer] Teach optrecord.py about !Failure tags 2019-03-27 18:35:04 +00:00
remarks-shlib [Remarks] Simplify and refactor the RemarkParser interface 2019-07-16 15:25:05 +00:00
sancov [sancov] Ignore PC samples with value 0 2019-07-11 22:59:23 +00:00
sanstats [DebugInfo] add SectionedAddress to DebugInfo interfaces. 2019-02-27 13:17:36 +00:00
verify-uselistorder Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
xcode-toolchain [CMake] Use LLVM_ENABLE_IDE instead of CMAKE_CONFIGURATION_TYPES 2018-10-15 21:20:02 +00:00
yaml2obj [yaml2obj] Move core yaml2obj code into lib and include for use in unit tests 2019-08-07 02:44:49 +00:00
CMakeLists.txt Fix most of LLVM's tests with LLVM_ENABLE_PIC=OFF 2019-01-16 20:44:36 +00:00
LLVMBuild.txt Added Delta IR Reduction Tool 2019-08-08 22:16:33 +00:00