1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/tools/dsymutil
Frederic Riss 52e45a3b66 Reapply r246012 [dsymutil] Emit real dSYM companion binaries.
With a fix for big endian machines. Thanks to Daniel Sanders for the debugging!

Original commit message:

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: 246673
2015-09-02 16:49:13 +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] Implement -symtab/-s option. 2015-08-31 00:29:09 +00:00
dsymutil.h [dsymutil] Implement -symtab/-s option. 2015-08-31 00:29:09 +00:00
DwarfLinker.cpp Reapply r246012 [dsymutil] Emit real dSYM companion binaries. 2015-09-02 16:49:13 +00:00
LLVMBuild.txt [dsymutil] Add the DwarfStreamer class. 2015-02-28 00:29:11 +00:00
MachODebugMapParser.cpp [dsymutil] Do not construct a StringRef from a std::string temporary 2015-08-31 00:49:34 +00:00
MachOUtils.cpp Reapply r246012 [dsymutil] Emit real dSYM companion binaries. 2015-09-02 16:49:13 +00:00
MachOUtils.h Reapply r246012 [dsymutil] Emit real dSYM companion binaries. 2015-09-02 16:49:13 +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