1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/tools/dsymutil
Jonas Devlieghere e081aff756 [dsymutil] Gather global and local symbol addresses in the main executable.
Usually local symbols will have their address described in the debug
map. Global symbols have to have their address looked up in the symbol
table of the main executable. By playing with 'ld -r' and export lists,
you can get a symbol described as global by the debug map while actually
being a local symbol as far as the link in concerned. By gathering the
address of local symbols, we fix this issue.

Also, we prefer a global symbol in case of a name collision to preserve
the previous behavior.

Note that using the 'ld -r' tricks, people can actually cause symbol
names collisions that dsymutil has no way to figure out. This fixes the
simple case where there is only one symbol of a given name.

rdar://problem/32826621

Differential revision: https://reviews.llvm.org/D54922

llvm-svn: 348021
2018-11-30 18:56:10 +00:00
..
BinaryHolder.cpp
BinaryHolder.h
CFBundle.cpp
CFBundle.h Add header guards to some headers that are missing them 2018-09-03 16:22:05 +00:00
CMakeLists.txt
CompileUnit.cpp
CompileUnit.h Add header guards to some headers that are missing them 2018-09-03 16:22:05 +00:00
DebugMap.cpp Use the container form llvm::sort(C, ...) 2018-09-30 22:31:29 +00:00
DebugMap.h
DeclContext.cpp
DeclContext.h Add header guards to some headers that are missing them 2018-09-03 16:22:05 +00:00
dsymutil.cpp [dsymutil] Improve error reporting when we cannot create output file. 2018-10-23 00:32:22 +00:00
dsymutil.h
DwarfLinker.cpp [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DwarfLinker.h [dsymutil] Prevent non-determinism due to threading. 2018-09-07 10:29:22 +00:00
DwarfStreamer.cpp [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DwarfStreamer.h [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
LinkUtils.h
LLVMBuild.txt
MachODebugMapParser.cpp [dsymutil] Gather global and local symbol addresses in the main executable. 2018-11-30 18:56:10 +00:00
MachOUtils.cpp Make dsymutil more robust when parsing load commands. 2018-11-13 23:31:25 +00:00
MachOUtils.h
NonRelocatableStringpool.cpp Use the container form llvm::sort(C, ...) 2018-09-30 22:31:29 +00:00
NonRelocatableStringpool.h