1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/tools/obj2yaml
Chris Bieneman d8b6eab87c [obj2yaml] [yaml2obj] Support for MachO Load Command data
This re-applies r270115.

Many of the MachO load commands can have data appended after the command structure. This data is frequently strings, but can actually be anything. This patch adds support for three optional fields on load command yaml descriptions.

The new PayloadString YAML field is populated with the data after load commands known to have strings as extra data.

The new ZeroPadBytes YAML field is a count of zero'd bytes after the end of the load command structure before the next command. This can apply anywhere in the file. MachO2YAML verifies that bytes are zero before populating this field, and YAML2MachO will add zero'd bytes.

The new PayloadBytes YAML field stores all bytes after the end of the load command structure before the next command if they are non-zero. This is a catch all for all unhandled bytes. If MachO2Yaml populates PayloadBytes it will not populate ZeroPadBytes, instead zero'd bytes will be in the PayloadBytes structure.

llvm-svn: 270124
2016-05-19 20:54:43 +00:00
..
CMakeLists.txt Initial add for MachO support for obj2yaml 2016-05-11 22:07:45 +00:00
coff2yaml.cpp Thread Expected<...> up from libObject’s getName() for symbols to allow llvm-objdump to produce a good error message. 2016-04-20 21:24:34 +00:00
elf2yaml.cpp Thread Expected<...> up from libObject’s getName() for symbols to allow llvm-objdump to produce a good error message. 2016-04-20 21:24:34 +00:00
Error.cpp [obj2yaml] Adding Error/Expected to macho2yaml 2016-05-12 01:52:33 +00:00
Error.h [obj2yaml] Adding Error/Expected to macho2yaml 2016-05-12 01:52:33 +00:00
macho2yaml.cpp [obj2yaml] [yaml2obj] Support for MachO Load Command data 2016-05-19 20:54:43 +00:00
obj2yaml.cpp Initial add for MachO support for obj2yaml 2016-05-11 22:07:45 +00:00
obj2yaml.h Initial add for MachO support for obj2yaml 2016-05-11 22:07:45 +00:00