1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/include/llvm/ObjectYAML
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
..
CodeViewYAMLDebugSections.h
CodeViewYAMLSymbols.h
CodeViewYAMLTypeHashing.h
CodeViewYAMLTypes.h
COFFYAML.h
DWARFEmitter.h
DWARFYAML.h [ObjectYAML] - Redefine LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex*) as LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR. 2019-10-30 18:12:48 +03:00
ELFYAML.h [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
MachOYAML.h [yaml2obj/obj2yaml][MachO] Allow setting custom section data 2019-08-20 08:49:07 +00:00
MinidumpYAML.h Update MinidumpYAML to use minidump::Exception for exception stream 2019-10-18 14:56:19 +00:00
ObjectYAML.h
WasmYAML.h [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
XCOFFYAML.h
yaml2obj.h [yaml2obj/ObjectYAML] - Cleanup the error reporting API, add custom errors handlers. 2019-09-13 16:00:16 +00:00
YAML.h [yaml2obj] - Add a way to describe the custom data that is not part of an output section. 2019-11-11 11:48:23 +03:00