forked from OSchip/llvm-project
d58e383f23
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 |
||
---|---|---|
.. | ||
Inputs | ||
aix_xcoff.test | ||
aix_xcoff_truncated_file_header.test | ||
basic-minidump.yaml | ||
call-graph-profile-section.yaml | ||
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 | ||
dynamic-section-arch-tags.test | ||
dynamic-section.test | ||
elf-emachine.yaml | ||
elf-entsize.yaml | ||
elf-gnu-hash-section.yaml | ||
elf-gnu-unique-symbols.yaml | ||
elf-hash-section.yaml | ||
elf-llvm-addrsig-section.yaml | ||
elf-mips-eflags.yaml | ||
elf-no-symtab.yaml | ||
elf-null-section.yaml | ||
elf-ppc64-relocations.yaml | ||
elf-reladyn-section-shinfo.yaml | ||
elf-shinfo.yaml | ||
elf-shlink.yaml | ||
elf-sht-symtab-shndx.yaml | ||
elf-stack-sizes.yaml | ||
elf-symbol-visibility.yaml | ||
implicit-sections-order.yaml | ||
invalid-section-name.yaml | ||
invalid_input_file.test | ||
linker-options.yaml | ||
lit.local.cfg | ||
llvm-deplibs-section.yaml | ||
macho-DWARF-debug_aranges-error.yaml | ||
missing_symtab.test | ||
no-symbol-reloc.test | ||
relocation-unsupported-machine.yaml | ||
relr-section.yaml | ||
section-group.test | ||
section-type.yaml | ||
sections-info.yaml | ||
special-symbol-indices.yaml | ||
symbol-type.yaml | ||
verdef-section.yaml | ||
verneed-section.yaml | ||
versym-section.yaml |