llvm-project/llvm/test/tools/llvm-readobj
James Henderson 21ed868390 [llvm-readelf] Don't suppress static symbol table with --dyn-symbols + --symbols
In r287786, a bug was introduced into llvm-readelf where it didn't print
the static symbol table if both --symbols and --dyn-symbols were
specified, even if there was no dynamic symbol table. This is obviously
incorrect.

This patch fixes this issue, by delegating the decision of which symbol
tables should be printed to the final dumper, rather than trying to
decide in the command-line option handling layer. The decision was made
to follow the approach taken in this patch because the LLVM style dumper
uses a different order to the original GNU style behaviour (and GNU
readelf) for ELF output. Other approaches resulted in behaviour changes
for other dumpers which felt wrong. In particular, I wanted to avoid
changing the order of the output for --symbols --dyn-symbols for LLVM
style, keep what is emitted by --symbols unchanged for all dumpers, and
avoid having different orders of .dynsym and .symtab dumping for GNU
"--symbols" and "--symbols --dyn-symbols".

Reviewed by: grimar, rupprecht

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

llvm-svn: 351960
2019-01-23 16:15:39 +00:00
..
ARM
Inputs [WebAssembly] Store section alignment as a power of 2 2019-01-16 01:34:48 +00:00
all.test [llvm-readelf] Make llvm-readelf more compatible with GNU readelf. 2018-11-12 18:02:38 +00:00
amdgpu-elf-definitions.test AMDGPU: Add and set AMDGPU-specific e_flags 2017-10-05 16:19:18 +00:00
arm64-win-error1.s [AArch64] [Windows] Misc fixes for llvm-readobj -unwind. 2018-11-02 19:59:08 +00:00
arm64-win-error2.s [ARM64][Windows] Add unwind support to llvm-readobj 2018-10-24 00:03:34 +00:00
arm64-win-error3.s [ARM64][Windows] Add unwind support to llvm-readobj 2018-10-24 00:03:34 +00:00
basic.test
bigobj.test
broken-group.test [llvm-readobj] Extend the output of -elf-section-groups 2018-03-12 22:40:09 +00:00
codeview-inlinees.test [codeview] Add support for inlinee lists 2017-10-23 23:43:40 +00:00
codeview-inlining.test
codeview-label.test
codeview-linetables.test [codeview] Change readobj symbol dumping format 2017-07-11 23:41:41 +00:00
codeview-merging-anon.test
codeview-merging-cycle.test [DebugInfo] Common behavior for error types 2018-08-31 17:41:58 +00:00
codeview-merging-unsorted.test
codeview-merging.test
codeview-types.test
codeview-vftable.test
coff-arm-baserelocs.test
coff-basereloc.test
coff-const-import.test
coff-debug-directory.test
coff-directives.test
coff-exports-implib.test
coff-exports.test
coff-file-sections-reading.test
coff-load-config.test [Object] Initialize LoadConfig member to null 2017-08-07 21:23:38 +00:00
coff-needed-libs.test [llvm-readobj] Support -needed-libs option for COFF files 2017-12-27 19:59:56 +00:00
coff-non-null-terminated-file.test
coff-resources.test [llvm-readobj] Teach readobj to dump .res files (WindowsResource). 2017-09-20 18:33:35 +00:00
coff-zero-string-table.test
cxx-cli-aux.test
demangle.test [llvm-readelf] Don't suppress static symbol table with --dyn-symbols + --symbols 2019-01-23 16:15:39 +00:00
dyn-symbols.test [llvm-readelf] Allow single-letter flags to be merged. 2019-01-15 17:04:40 +00:00
dynamic.test [llvm-readobj] - Teach readobj to print DT_FILTER dynamic tag in human readable form. 2017-07-14 16:00:16 +00:00
elf-dtflags.test
elf-gnuhash.test
elf-groups.test [llvm-readobj] Extend the output of -elf-section-groups 2018-03-12 22:40:09 +00:00
elf-hash-histogram.test
elf-linker-options.ll Mark two tests REQUIRES: x86-registered-backend 2018-01-31 07:32:03 +00:00
elf-packed-relocs-empty.s Assembly tests require x86 target. 2017-10-25 04:24:20 +00:00
elf-packed-relocs-error1.s Assembly tests require x86 target. 2017-10-25 04:24:20 +00:00
elf-packed-relocs-error2.s Assembly tests require x86 target. 2017-10-25 04:24:20 +00:00
elf-packed-relocs-error3.s Assembly tests require x86 target. 2017-10-25 04:24:20 +00:00
elf-packed-relocs-error4.s Assembly tests require x86 target. 2017-10-25 04:24:20 +00:00
elf-packed-relocs-error5.s Assembly tests require x86 target. 2017-10-25 04:24:20 +00:00
elf-packed-relocs.test llvm-readobj: Fix addend in relocations for android packed format 2018-08-15 17:58:22 +00:00
elf-relr-relocs.test [llvm-readobj] Add experimental support for SHT_RELR sections 2018-06-28 21:07:34 +00:00
elf-sec-compressed.test
elf-sec-flags.test
elf-versioninfo.test [llvm-readobj] Don't print '@' at end of unversioned dynsym names 2019-01-08 10:58:05 +00:00
file-headers.test [WebAssembly] Be consistent in generating trivial test input files 2017-07-10 20:43:26 +00:00
gnu-file-headers.test [llvm-readobj] Print ELF header flags names in GNU output 2018-10-25 05:39:27 +00:00
gnu-hash-symbols.test [llvm-readelf]Revert --dyn-symbols behaviour to make it GNU compatible, and add new --hash-symbols switch for old behaviour 2019-01-22 09:35:35 +00:00
gnu-note-size.test [libObject] Fix getDesc for Elf_Note_Impl 2018-11-13 01:10:35 +00:00
gnu-notes.test [llvm-readobj] Implement LLVM style printer for --notes 2018-11-07 23:53:50 +00:00
gnu-phdrs.test
gnu-relocations.test
gnu-sections.test [llvm-readobj] Install llvm-readelf alias 2017-07-19 02:09:37 +00:00
gnu-symbols.test [llvm-readelf] Don't suppress static symbol table with --dyn-symbols + --symbols 2019-01-23 16:15:39 +00:00
headers.test [llvm-readelf] Add -e/--headers support to readobj/elf 2018-12-11 16:15:03 +00:00
hexdump.test [llvm-readobj] Set correct offset when dumping hex section output. 2019-01-16 16:17:19 +00:00
imports.test
macho-needed-libs.test [llvm-readobj] Support -needed-libs option for Mach-O files 2018-01-08 02:23:10 +00:00
macho-universal-x86_64.i386.test
many-sections.s [llvm-readobj] - Do not report invalid amount of sections. 2018-07-19 14:52:57 +00:00
merged.test [llvm-readelf] Allow single-letter flags to be merged. 2019-01-15 17:04:40 +00:00
mips-abiflags.test
mips-got-overlapped.test
mips-got.test [llvm-readobj] Don't print '@' at end of unversioned dynsym names 2019-01-08 10:58:05 +00:00
mips-options-sec.test
mips-options.test
mips-plt.test [llvm-readobj] Support 'GNU' style for MIPS GOT/PLT dumping 2017-12-21 10:26:02 +00:00
mips-reginfo.test
mips-rld-map-rel.test
mips-st-other.test
note-gnu-property.s [llvm-readobj] Implement LLVM style printer for --notes 2018-11-07 23:53:50 +00:00
note-gnu-property2.s [llvm-readobj] Implement LLVM style printer for --notes 2018-11-07 23:53:50 +00:00
peplus.test
ppc64-glink.test Add PPC64_GLINK dynamic tag. 2018-04-13 16:42:48 +00:00
print-hex.test [WebAssembly] Update test cases after FixFunctionBitcasts 2018-11-07 01:58:50 +00:00
print-section.test [llvm-readobj] Generic -string-dump option 2018-07-18 18:00:41 +00:00
program-headers.test
readelf-s-alias.test [llvm-readelf] Make llvm-readelf more compatible with GNU readelf. 2018-11-12 18:02:38 +00:00
reloc-types.test
relocations.test [llvm-readobj] [COFF] Print the symbol index for relocations 2019-01-03 08:08:23 +00:00
res-resources.test [llvm-readobj] Teach readobj to dump .res files (WindowsResource). 2017-09-20 18:33:35 +00:00
rpath.test
sections-ext.test [llvm-readelf] Allow single-letter flags to be merged. 2019-01-15 17:04:40 +00:00
sections.test [llvm-readelf] Make llvm-readelf more compatible with GNU readelf. 2018-11-12 18:02:38 +00:00
symbols.test [llvm-readelf] Make llvm-readelf more compatible with GNU readelf. 2018-11-12 18:02:38 +00:00
unwind-arm64-windows.test [ARM64][Windows] Add unwind support to llvm-readobj 2018-10-24 00:03:34 +00:00
unwind.test Reland "[DebugInfo] Support DWARF expressions in eh_frame" 2018-03-08 00:46:53 +00:00
wasm-invalid.test