1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/tools/dsymutil
Frederic Riss 0a9bf9e3f1 [dsymutil] Emit real dSYM companion binaries.
The binaries containing the linked DWARF generated by dsymutil are not
standard relocatable object files like emitted did previsously. They should be
dSYM companion files, which means they have a different file type in the
header, but also a couple other peculiarities:
 - they contain the segments and sections from the original binary in their
load commands, but not the actual contents. This means they get an address
and a size, but their offset is always 0 (but these are not virtual sections)
 - they also conatin all the defined symbols from the original binary

This makes MC a really bad fit to emit these kind of binaries. The approach
that was used in this patch is to leverage MC's section layout for the
debug sections, but to use a replacement for MachObjectWriter that lives
in MachOUtils.cpp. Some of the low-level helpers from MachObjectWriter
were reused too.

llvm-svn: 246012
2015-08-26 05:10:04 +00:00
..
BinaryHolder.cpp [dsymutil] Implement support for universal mach-o object files. 2015-07-24 06:41:11 +00:00
BinaryHolder.h [dsymutil] Implement support for universal mach-o object files. 2015-07-24 06:41:11 +00:00
CMakeLists.txt [dsymutil] Implement support for handling mach-o universal binaries as main input/output. 2015-08-05 18:27:44 +00:00
DebugMap.cpp [dsymutil] Store an optional BinaryPath in the debug map. 2015-08-26 05:09:59 +00:00
DebugMap.h [dsymutil] Store an optional BinaryPath in the debug map. 2015-08-26 05:09:59 +00:00
dsymutil.cpp [dsymutil] Reapply r245960. 2015-08-25 23:15:26 +00:00
dsymutil.h [dsymutil] Make the warn and error helpers globally available. NFC. 2015-08-26 05:09:55 +00:00
DwarfLinker.cpp [dsymutil] Emit real dSYM companion binaries. 2015-08-26 05:10:04 +00:00
LLVMBuild.txt [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
MachODebugMapParser.cpp [dsymutil] Store an optional BinaryPath in the debug map. 2015-08-26 05:09:59 +00:00
MachOUtils.cpp [dsymutil] Emit real dSYM companion binaries. 2015-08-26 05:10:04 +00:00
MachOUtils.h [dsymutil] Emit real dSYM companion binaries. 2015-08-26 05:10:04 +00:00
Makefile [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
NonRelocatableStringpool.h [dsymutil] Split NonRelocatableStringPool into its own file. NFC. 2015-08-26 05:09:52 +00:00