llvm-project/llvm/lib/Object
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
..
Archive.cpp [llvm-ar] Fix for handling thin archive with SYM64 and a test case for it 2021-08-05 10:06:34 -07:00
ArchiveWriter.cpp
Binary.cpp [SystemZ][z/OS] Add GOFF support to file magic identification 2021-07-20 10:50:47 -04:00
CMakeLists.txt Revert "Extract LC_CODE_SIGNATURE related implementation out of LLD" 2021-10-01 17:19:50 -07:00
COFFImportFile.cpp
COFFModuleDefinition.cpp [Object] Deduplicate the three createError functions 2021-10-11 16:36:57 +02:00
COFFObjectFile.cpp [NFC][object] Change the input parameter of the method isDebugSection. 2021-05-26 08:47:53 +00:00
Decompressor.cpp
ELF.cpp Make the BBAddrMap struct binary-format-agnostic. 2021-11-04 10:27:24 -07:00
ELFObjectFile.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
Error.cpp
FaultMapParser.cpp [FaultsMaps][llvm-objdump] Move FaultMapParser to Object/. Remove CodeGen dependency from llvm-objdump 2021-01-27 10:39:59 -08:00
IRObjectFile.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
IRSymtab.cpp [IRSymTab] Mark __stack_chk_guard used 2021-10-28 11:22:26 -07:00
MachOObjectFile.cpp Extend obj2yaml to optionally preserve raw __LINKEDIT/__DATA segments. 2021-11-08 11:30:12 -08:00
MachOUniversal.cpp
MachOUniversalWriter.cpp [llvm-objcopy][NFC] replace class Buffer/MemBuffer/FileBuffer with streams. 2021-03-10 23:50:04 +03:00
Minidump.cpp
ModuleSymbolTable.cpp [IR] Refactor GlobalIFunc to inherit from GlobalObject, Remove GlobalIndirectSymbol 2021-10-20 10:29:47 -07:00
Object.cpp [llvm] Update report_fatal_error calls from raw_string_ostream to use Twine(OS.str()) 2021-10-05 18:42:12 +01:00
ObjectFile.cpp Support: Use Expected<T>::moveInto() in a few places 2021-10-22 12:40:10 -07:00
RecordStreamer.cpp [MC] Support .symver *, *, remove 2021-03-06 15:23:02 -08:00
RecordStreamer.h [MC] Support .symver *, *, remove 2021-03-06 15:23:02 -08:00
RelocationResolver.cpp [llvm] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine) 2021-10-06 12:04:30 +01:00
SymbolSize.cpp [llvm-objdump][XCOFF] Enable the -l (--line-numbers) option. 2021-06-10 04:37:06 +00:00
SymbolicFile.cpp [SystemZ][z/OS] Add GOFF support to file magic identification 2021-07-20 10:50:47 -04:00
TapiFile.cpp [TextAPI] add symbol name prefixes to central location, NFC 2021-06-23 11:21:00 -07:00
TapiUniversal.cpp [TextAPI] move source code files out of subdirectory, NFC 2021-04-05 10:24:42 -07:00
WasmObjectFile.cpp [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
WindowsMachineFlag.cpp
WindowsResource.cpp
XCOFFObjectFile.cpp [AIX][XCOFF] parsing xcoff object file auxiliary header 2021-10-26 10:40:25 -04:00