llvm-project/llvm/test/tools/obj2yaml
Adrian Prantl 8bd8dd16e2 Extend obj2yaml to optionally preserve raw __LINKEDIT/__DATA segments.
I am planning to upstream MachOObjectFile code to support Darwin
chained fixups. In order to test the new parser features we need a way
to produce correct (and incorrect) chained fixups. Right now the only
tool that can produce them is the Darwin linker. To avoid having to
check in binary files, this patch allows obj2yaml to print a hexdump
of the raw LINKEDIT and DATA segment, which both allows to
bootstrap the parser and enables us to easily create malformed inputs
to test error handling in the parser.

This patch adds two new options to obj2yaml:

  -raw-data-segment
  -raw-linkedit-segment

Differential Revision: https://reviews.llvm.org/D113234
2021-11-08 11:30:12 -08:00
..
Archives
COFF [Debug-Info][CodeView] Fix GUID string generation for MSVC generated objects. 2021-06-15 06:53:21 +01:00
ELF [llvm-objdump/llvm-readobj/obj2yaml/yaml2obj] Support STO_RISCV_VARIANT_CC and DT_RISCV_VARIANT_CC 2021-09-29 16:56:52 -07:00
MachO Extend obj2yaml to optionally preserve raw __LINKEDIT/__DATA segments. 2021-11-08 11:30:12 -08:00
Minidump
XCOFF [XCOFF] Improve error message context. 2021-10-11 02:52:20 +00:00
invalid_input_file.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00