1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/tools/llvm-readobj
George Rimar dfd6c321a6 [llvm-readobj/llvm-objdump] - Improve how tool locate the dynamic table and report warnings about that.
Before this patch we gave a priority to a dynamic table found
from the section header.

It was discussed (here: https://reviews.llvm.org/D67078?id=218356#inline-602082)
that probably preferring the table from PT_DYNAMIC is better,
because it is what runtime loader sees.

This patch makes the table from PT_DYNAMIC be chosen at first place if it is available.
But also it adds logic to fall back to SHT_DYNAMIC if the table from the dynamic segment is
broken or fall back to use no table if both are broken.

It adds a few more diagnostic warnings for the logic above.

Differential revision: https://reviews.llvm.org/D67547

llvm-svn: 372122
2019-09-17 13:58:46 +00:00
..
AArch64
ARM
Inputs [llvm-readobj] - Test PPC64 relocations properly. 2019-09-17 12:05:39 +00:00
all.test
amdgpu-elf-definitions.test
archive.test
arm64-many-epilogs.s
arm64-win-error1.s
arm64-win-error2.s
arm64-win-error3.s
basic.test
bigobj.test
broken-group.test
check-output-order.test
codeview-inlinees.test
codeview-inlining.test
codeview-label.test
codeview-linetables.test
codeview-merging-anon.test
codeview-merging-cycle.test
codeview-merging-ghash.test
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-headers.test
coff-file-sections-reading.test
coff-load-config.test
coff-needed-libs.test
coff-non-null-terminated-file.test
coff-resources.test [COFF] Add a ResourceSectionRef method for getting resource contents 2019-08-30 06:55:49 +00:00
coff-zero-string-table.test
cxx-cli-aux.test
demangle.test [yaml2obj] - Lookup relocation symbols in dynamic symbol when .dynsym referenced. 2019-08-22 12:39:56 +00:00
dyn-symbols.test [llvm-readelf] - Allow dumping dynamic symbols when there is no program headers. 2019-09-05 14:02:58 +00:00
elf-broken-dynamic-reloc-name.test [llvm-readobj/llvm-readelf] - Report a proper warning when dumping a broken dynamic relocation. 2019-08-29 10:55:57 +00:00
elf-broken-dynsym-link.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-dynamic-empty.test
elf-dynamic-malformed.test [llvm-readobj/llvm-objdump] - Improve how tool locate the dynamic table and report warnings about that. 2019-09-17 13:58:46 +00:00
elf-dynamic-no-pt-dynamic.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-dynamic-not-in-pt-dynamic.test [llvm-readobj/llvm-objdump] - Improve how tool locate the dynamic table and report warnings about that. 2019-09-17 13:58:46 +00:00
elf-dynamic-table-dtnull.s
elf-dynamic-tags-machine-specific.test
elf-dynamic-tags.test
elf-file-headers.test Fix rL371162 again 2019-09-06 03:31:42 +00:00
elf-file-types.test
elf-gnuhash.test
elf-groups.test
elf-hash-histogram.test
elf-hash-symbols.test
elf-hidden-versym.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-invalid-shstrndx.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-invalid-versioning.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-linker-options.ll
elf-loadname.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-machine-specific-section-types.test
elf-malformed-pt-dynamic.test Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
elf-no-action.test
elf-no-phdrs.test
elf-no-relocs.test
elf-no-shdrs.test
elf-non-dynamic-in-pt-dynamic.test [llvm-readobj/llvm-objdump] - Improve how tool locate the dynamic table and report warnings about that. 2019-09-17 13:58:46 +00:00
elf-packed-relocs-empty.s
elf-packed-relocs-error1.s [llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO). 2019-08-09 10:53:12 +00:00
elf-packed-relocs-error2.s [llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO). 2019-08-09 10:53:12 +00:00
elf-packed-relocs-error3.s [llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO). 2019-08-09 10:53:12 +00:00
elf-packed-relocs-error4.s [llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO). 2019-08-09 10:53:12 +00:00
elf-packed-relocs-error5.s [llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO). 2019-08-09 10:53:12 +00:00
elf-packed-relocs.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-reloc-negative-addend-no-sym.test
elf-reloc-no-sym.test [test/Object] - Move/rewrite 2 more test cases. 2019-08-20 08:23:57 +00:00
elf-reloc-symbol-with-versioning.test
elf-reloc-zero-name-or-value.test [llvm-readobj] - Fix BB after r372087. 2019-09-17 09:26:49 +00:00
elf-relr-relocs.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-sec-compressed.test
elf-sec-flags.test
elf-section-types.test [llvm-readobj][yaml2obj] Support SHT_LLVM_SYMPART, SHT_LLVM_PART_EHDR and SHT_LLVM_PART_PHDR 2019-09-06 00:53:28 +00:00
elf-symbol-64bit.test
elf-symbol-binding.test
elf-symbol-shndx.test
elf-symbol-types.test Print reasonable representations of type names in llvm-nm, readelf and readobj 2019-08-09 16:54:51 +00:00
elf-symbol-visibility.test [llvm-readelf] - Print unknown st_other value if present in GNU output. 2019-09-06 13:05:34 +00:00
elf-types.test
elf-verneed-flags.yaml
elf-versioninfo.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
elf-wrong-shstrtab-type.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
error-format.test [llvm-readobj] Prepend argv[0] to error/warning messages 2019-08-20 12:49:15 +00:00
file-name.test [llvm-readelf]Print filename for multiple inputs and fix formatting regression 2019-08-09 12:30:08 +00:00
gnu-file-headers.test
gnu-note-size.test
gnu-notes.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
gnu-phdrs.test
gnu-section-mapping-no-phdrs.test
gnu-section-mapping-no-shdrs.test
gnu-sections.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
gnu-symbols.test
headers.test
hex-dump-multi.s
hex-dump.test Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
imports.test
macho-file-headers.test
macho-needed-libs.test
macho-sections.test [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
macho-universal-x86_64.i386.test [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
many-sections2.s
many-sections.s
merged.test
mips-abiflags.test
mips-got-overlapped.test
mips-got.test Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
mips-options-sec.test
mips-options.test
mips-plt.test
mips-reginfo.test
mips-rld-map-rel.test
mips-st-other.test
note-amd.s [llvm-readelf] Implement note parsing for NT_FILE and unknown descriptors 2019-08-13 14:38:45 +00:00
note-amdgpu.test
note-core-ntfile-bad.test Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
note-core-ntfile.test [llvm-readelf] Implement note parsing for NT_FILE and unknown descriptors 2019-08-13 14:38:45 +00:00
note-core.test
note-freebsd.s [llvm-readelf] Implement note parsing for NT_FILE and unknown descriptors 2019-08-13 14:38:45 +00:00
note-generic.s
note-gnu-property2.s
note-gnu-property.s
note-unknown.s [llvm-readelf] Implement note parsing for NT_FILE and unknown descriptors 2019-08-13 14:38:45 +00:00
peplus.test
ppc64-glink.test
program-headers.test [test] - Remove precomiled openbsd-phdrs.elf-x86-64 objects. 2019-08-17 14:23:30 +00:00
readelf-s-alias.test
reloc-types-coff-i386.test
reloc-types-coff-x64.test
reloc-types-elf-aarch64.test
reloc-types-elf-arm.test
reloc-types-elf-i386.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
reloc-types-elf-lanai.test
reloc-types-elf-mips64.test
reloc-types-elf-mips.test
reloc-types-elf-ppc64.test [llvm-readobj] - Test PPC64 relocations properly. 2019-09-17 12:05:39 +00:00
reloc-types-elf-x64.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
reloc-types-macho-arm.test
reloc-types-macho-i386.test
reloc-types-macho-x64.test
relocations.test
res-resources.test [llvm-readobj] Print the resource type textually for .res files 2019-08-29 08:59:31 +00:00
rpath.test
sections-ext.test [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
sections.test [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
stack-sizes.test [llvm-readelf]Print filename for multiple inputs and fix formatting regression 2019-08-09 12:30:08 +00:00
string-dump-multi.s
string-dump.test Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
symbols.test
thin-archive-paths.test
thin-archive.test
unwind-arm64-windows.test
unwind.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
wasm-file-headers.test
wasm-imports.test
wasm-invalid.test
xcoff-basic.test
xcoff-sections.test
xcoff-symbols.test [XCOFF][AIX] Generate symbol table entries with llvm-readobj 2019-08-27 18:54:46 +00:00