1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/tools/obj2yaml
Georgii Rymar 0ba63b8a56 [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
..
Inputs [yaml2obj/obj2yaml] - Add a basic support for extended section indexes. 2019-08-08 09:49:05 +00:00
aix_xcoff_truncated_file_header.test
aix_xcoff.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 [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
coff-long-section-name.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
coff-section-aux-symbol.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
coff-weak-external.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
duplicate-symbol-and-section-names.test [yaml2obj/obj2yaml] - Allow having the symbols and sections with duplicated names. 2019-06-25 08:22:57 +00: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 [yaml2obj/obj2yaml] - Make RawContentSection::Content and RawContentSection::Size optional 2019-06-10 12:43:18 +00:00
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
invalid_input_file.test [test/Object] - Cleanup the Object\obj2yaml.test a bit. 2019-08-06 14:34:39 +00:00
invalid-section-name.yaml [obj2yaml] - Update a comment in a test case. NFC. 2019-10-29 11:58:19 +03: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 [yaml2obj/obj2yaml] - Make RawContentSection::Info Optional<> 2019-06-19 08:57:38 +00:00
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