llvm-project/llvm/test/tools/obj2yaml
Georgii Rymar d58e383f23 [obj2yaml] - Dump allocatable SHT_STRTAB, SHT_SYMTAB and SHT_DYNSYM sections.
Sometimes we need to dump an object and build it again from a YAML
description produced. The problem is that obj2yaml does not dump some
of sections, like string tables and symbol tables.

Because of that yaml2obj implicitly creates them and sections created
are not placed at their original locations. They are added to the end of a section list.
That makes a preparing test cases task harder than it can be.

This patch teaches obj2yaml to dump parts of allocatable SHT_STRTAB, SHT_SYMTAB
and SHT_DYNSYM sections to print placeholders for them.
This also allows to preserve usefull parameters, like virtual address.

Differential revision: https://reviews.llvm.org/D74955
2020-03-03 11:32:49 +03:00
..
Inputs [yaml2obj/obj2yaml] - Add a basic support for extended section indexes. 2019-08-08 09:49:05 +00:00
aix_xcoff.test
aix_xcoff_truncated_file_header.test
basic-minidump.yaml minidump: Rename some architecture constants 2019-10-30 14:46:00 +01:00
call-graph-profile-section.yaml [yaml2obj/obj2yaml] - Add support for the SHT_LLVM_CALL_GRAPH_PROFILE section. 2020-02-04 15:13:20 +03:00
coff-bss.s
coff-long-file-symbol.test
coff-long-section-name.test
coff-section-aux-symbol.test
coff-weak-external.test
duplicate-symbol-and-section-names.test [obj2yaml] - Dump allocatable SHT_STRTAB, SHT_SYMTAB and SHT_DYNSYM sections. 2020-03-03 11:32:49 +03:00
dynamic-section-arch-tags.test [test] yaml2obj -docnum => --docnum= 2020-02-04 10:33:21 -08:00
dynamic-section.test
elf-emachine.yaml [yaml2obj/obj2yaml] - Allow setting an arbitrary values for e_machine. 2019-09-17 11:51:26 +00:00
elf-entsize.yaml
elf-gnu-hash-section.yaml [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
elf-gnu-unique-symbols.yaml
elf-hash-section.yaml [yaml2obj/obj2yaml] - Add support for SHT_HASH sections. 2019-10-01 09:45:59 +00:00
elf-llvm-addrsig-section.yaml [yaml2obj][obj2yaml] - Simplify format of the SHT_LLVM_ADDRSIG section. 2020-02-05 12:33:14 +03:00
elf-mips-eflags.yaml [obj2yaml] - MIPS: move and improve testing of the e_flags 2019-08-07 09:35:04 +00:00
elf-no-symtab.yaml [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
elf-null-section.yaml [obj2yaml] - Teach tool to dump SHT_NULL sections. 2019-08-05 13:16:06 +00:00
elf-ppc64-relocations.yaml [yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] section. 2019-10-29 11:43:12 +03:00
elf-reladyn-section-shinfo.yaml
elf-shinfo.yaml
elf-shlink.yaml [obj2yaml] - Report a error when unable to resolve a sh_link reference properly. 2019-07-29 07:58:29 +00:00
elf-sht-symtab-shndx.yaml [llvm/Object] - Fix the error message reported for a broken SHT_SYMTAB_SHNDX section. 2019-10-25 12:19:46 +03:00
elf-stack-sizes.yaml [yaml2obj/obj2yaml] - Add support for .stack_sizes sections. 2019-09-24 14:22:37 +00:00
elf-symbol-visibility.yaml [yaml2obj][obj2yaml] - Use a single "Other" field instead of "Other", "Visibility" and "StOther". 2019-08-30 13:39:22 +00:00
implicit-sections-order.yaml [obj2yaml] - Dump allocatable SHT_STRTAB, SHT_SYMTAB and SHT_DYNSYM sections. 2020-03-03 11:32:49 +03:00
invalid-section-name.yaml [obj2yaml] - Update a comment in a test case. NFC. 2019-10-29 11:58:19 +03:00
invalid_input_file.test [test/Object] - Cleanup the Object\obj2yaml.test a bit. 2019-08-06 14:34:39 +00:00
linker-options.yaml [yaml2obj/obj2yaml] - Add support for SHT_LLVM_LINKER_OPTIONS sections. 2019-11-12 09:55:20 +03:00
lit.local.cfg
llvm-deplibs-section.yaml [yaml2obj/obj2yaml] - Add support for SHT_LLVM_DEPENDENT_LIBRARIES sections. 2019-11-25 12:57:53 +03:00
macho-DWARF-debug_aranges-error.yaml [DWARF] Return Error from DWARFDebugArangeSet::extract(). 2020-01-23 12:41:05 +07:00
missing_symtab.test
no-symbol-reloc.test [yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] section. 2019-10-29 11:43:12 +03:00
relocation-unsupported-machine.yaml [yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] section. 2019-10-29 11:43:12 +03:00
relr-section.yaml [yaml2obj][test] Simplify some e_machine EI_CLASS EI_DATA tests 2020-02-07 09:35:26 -08:00
section-group.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
section-type.yaml
sections-info.yaml
special-symbol-indices.yaml [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
symbol-type.yaml [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
verdef-section.yaml
verneed-section.yaml
versym-section.yaml [obj2yaml] - Dump allocatable SHT_STRTAB, SHT_SYMTAB and SHT_DYNSYM sections. 2020-03-03 11:32:49 +03:00