llvm-project/llvm/test/tools/llvm-readobj/ELF
Georgii Rymar 31f2ad9c36 [yaml2obj] - Automatically assign sh_addr for allocatable sections.
I've noticed that it is not convenient to create YAMLs from
binaries (using obj2yaml) that have to be test cases for obj2yaml
later (after applying yaml2obj).

The problem, for example is that obj2yaml emits "DynamicSymbols:"
key instead of .dynsym. It also does not create .dynstr.
And when a YAML document without explicitly defined .dynsym/.dynstr
is given to yaml2obj, we have issues:

1) These sections are placed after non-allocatable sections (I've fixed it in D74756).
2) They have VA == 0. User needs create descriptions for such sections explicitly manually
    to set a VA.

This patch addresses (2). I suggest to let yaml2obj assign virtual addresses by itself.
It makes an output binary to be much closer to "normal" ELF.
(It is still possible to use "Address: 0x0" for a section to get the original behavior
if it is needed)

Differential revision: https://reviews.llvm.org/D74764
2020-02-22 14:43:54 +03:00
..
AArch64
ARM
Inputs [llvm-readobj][test] - Cleanup testing of the --sections command line option. 2020-01-31 12:58:12 +03:00
addrsig.test [yaml2obj][obj2yaml] - Simplify format of the SHT_LLVM_ADDRSIG section. 2020-02-05 12:33:14 +03:00
all.test
amdgpu-elf-definitions.test
basic.test [llvm-readobj][test] - Cleanup and split tests in tools/llvm-readobj folder. 2019-12-12 12:21:58 +03:00
broken-dynamic-reloc.test [llvm-readobj][test] Fix test after yaml2obj change (D74034) 2020-02-06 01:22:10 -08:00
broken-dynsym-link.test
broken-group.test
call-graph-profile.test [llvm-readobj][test] - Add a test for --elf-cg-profile option. 2020-02-11 13:06:36 +03:00
check-output-order.test [llvm-readelf] - Change letters used for SHF_ARM_PURECODE and SHF_X86_64_LARGE flags. 2019-12-18 11:31:58 +03:00
demangle.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
dependent-libraries.test [llvm-readobj][llvm-readelf] - Remove excessive empty lines when reporting errors and warnings. 2019-12-11 15:06:33 +03:00
dyn-symbols.test [llvm-readobj] - Report a warning when an unexpected DT_SYMENT tag value is met. 2020-02-18 14:36:17 +03:00
dynamic-empty.test
dynamic-malformed.test [llvm-readobj] - Improve error message reported by DynRegionInfo. 2020-01-30 14:34:20 +03:00
dynamic-no-pt-dynamic.test
dynamic-not-in-pt-dynamic.test [llvm-readobj] - Improve error message reported by DynRegionInfo. 2020-01-30 14:34:20 +03:00
dynamic-reloc-no-section-headers.test [yaml2obj] - Change the order of implicitly created sections. 2020-02-19 15:09:19 +03:00
dynamic-table-dtnull.s [test] yaml2obj -docnum => --docnum= 2020-02-04 10:33:21 -08:00
dynamic-tags-machine-specific.test [llvm-readelf][llvm-readobj] - Fix the indentation when printing dynamic tags. 2020-01-21 14:24:50 +03:00
dynamic-tags.test [llvm-readelf][llvm-readobj] - Fix the indentation when printing dynamic tags. 2020-01-21 14:24:50 +03:00
file-header-abi-version.test [llvm-readobj][test] - Fix grammar in comments. 2020-01-14 12:51:52 +03:00
file-header-os-abi.test [llvm-readobj][test] - Fix grammar in comments. 2020-01-14 12:51:52 +03:00
file-headers.test
file-name.test
file-types.test
gnu-file-headers.test [llvm-readelf] Print EI_ABIVERSION as decimal instead of hexadecimal 2020-01-06 09:25:45 -08:00
gnu-note-size.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
gnu-notes.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
gnu-phdrs.test
gnu-section-mapping-no-phdrs.test [llvm-readobj][test] - Stop using Inputs/trivial.obj.elf-x86-64. 2019-12-23 13:10:26 +03:00
gnu-section-mapping-no-shdrs.test
gnu-sections.test [llvm-readelf] - Change letters used for SHF_ARM_PURECODE and SHF_X86_64_LARGE flags. 2019-12-18 11:31:58 +03:00
gnuhash.test [llvm-readobj] - Add a few warnings for --gnu-hash-table. 2020-01-30 14:02:24 +03:00
groups.test
hash-histogram.test [yaml2obj][test] Simplify some e_machine EI_CLASS EI_DATA tests 2020-02-07 09:35:26 -08:00
hash-symbols.test
hash-table.test [llvm-readobj] - Add a test for --hash-table option. 2020-01-27 12:28:21 +03:00
headers.test
hex-dump-multi.s
hex-dump.test [llvm-readobj][test] - Stop using Inputs/trivial.obj.elf-x86-64. 2019-12-23 13:10:26 +03:00
hidden-versym.test [yaml2obj] - Change the order of implicitly created sections. 2020-02-19 15:09:19 +03:00
invalid-shstrndx.test [llvm-readobj] - Change the error to warning when a section name is unknown. 2020-02-10 16:01:30 +03:00
linker-options.test [llvm-readobj][llvm-readelf] - Remove excessive empty lines when reporting errors and warnings. 2019-12-11 15:06:33 +03:00
loadname.test
machine-specific-section-types.test
malformed-pt-dynamic.test
many-sections.s
many-sections2.s
merged.test
mips-abiflags.test
mips-got-overlapped.test
mips-got.test
mips-options-sec.test
mips-options.test
mips-plt.test
mips-reginfo.test
mips-rld-map-rel.test
mips-symbols-stother.test [llvm-readobj][test] - Refactor mips-st-other.test 2019-12-19 11:23:39 +03:00
needed-libs.test [llvm-readobj] - Refine --needed-libs implementation and add a test. 2020-01-27 13:29:28 +03:00
no-action.test
no-phdrs.test
no-relocs.test
no-shdrs.test
non-dynamic-in-pt-dynamic.test [llvm-readobj] - Improve error message reported by DynRegionInfo. 2020-01-30 14:34:20 +03:00
note-amd.s
note-amdgpu.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
note-core-ntfile-bad.test
note-core-ntfile.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
note-core.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
note-freebsd.s
note-generic.s
note-gnu-property.s
note-gnu-property2.s
note-unknown.s
packed-relocs-empty.s
packed-relocs-error1.s
packed-relocs-error2.s
packed-relocs-error3.s
packed-relocs-error4.s
packed-relocs-error5.s
packed-relocs.test [test] yaml2obj -docnum => --docnum= 2020-02-04 10:33:21 -08:00
ppc64-glink.test
program-headers.test
pt-gnu-property.test
reloc-negative-addend-no-sym.test
reloc-no-sym.test
reloc-symbol-with-versioning.test [yaml2obj] - Change the order of implicitly created sections. 2020-02-19 15:09:19 +03:00
reloc-types-elf-aarch64.test
reloc-types-elf-arm.test
reloc-types-elf-i386.test
reloc-types-elf-lanai.test
reloc-types-elf-mips.test
reloc-types-elf-mips64.test
reloc-types-elf-ppc64.test [ELF][PowerPC] Support R_PPC_COPY and R_PPC64_COPY 2020-01-24 09:06:20 -08:00
reloc-types-elf-x64.test
reloc-zero-name-or-value.test
relocations.test [llvm-readobj][test] - Cleanup and split tests in tools/llvm-readobj folder. 2019-12-12 12:21:58 +03:00
relr-relocs.test [test] yaml2obj -docnum => --docnum= 2020-02-04 10:33:21 -08:00
section-arch-flags.test [llvm-readelf] - Change letters used for SHF_ARM_PURECODE and SHF_X86_64_LARGE flags. 2019-12-18 11:31:58 +03:00
section-flags-os-proc.test [llvm-readobj][test] - Move a comment. NFC. 2019-12-18 11:50:08 +03:00
section-flags.test [llvm-readelf][llvm-readobj] - Reimplement the logic of section flags dumping. 2019-12-18 10:44:40 +03:00
section-symbols.test
section-types.test
sections-ext.test [llvm-readobj][test] - Cleanup and split tests in tools/llvm-readobj folder. 2019-12-12 12:21:58 +03:00
sections-no-section-header-string-table.test [llvm-readobj] - Change the error to warning when a section name is unknown. 2020-02-10 16:01:30 +03:00
sections.test [llvm-readobj][test] - Cleanup testing of the --sections command line option. 2020-01-31 12:58:12 +03:00
stack-sizes.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
string-dump-multi.s
string-dump.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-64bit.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-binding.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-shndx.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-types.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-visibility.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbols.test [llvm-readobj][test] - Remove --symbols --dyn-syms part from Object/readobj-shared-object.test. 2020-01-28 12:36:29 +03:00
thin-archive-paths.test [llvm-readobj][test] - Stop using Inputs/trivial.obj.elf-x86-64. 2019-12-23 13:10:26 +03:00
types.test
unwind.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
verdef-invalid.test [yaml2obj] - Change the order of implicitly created sections. 2020-02-19 15:09:19 +03:00
verneed-flags.yaml
verneed-invalid.test [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
versioninfo.test [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
versym-invalid.test [yaml2obj] - Change the order of implicitly created sections. 2020-02-19 15:09:19 +03:00
wrong-shstrtab-type.test