[dsymutil] Better support for symbol aliases
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 26 Sep 2017 08:17:28 +0000 (08:17 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 26 Sep 2017 08:17:28 +0000 (08:17 +0000)
commit4a5a6337f7b79c8800dc0f5d7119f17b07e527ae
treed325ed1dbb782f141af6febac97f4881a8ef57b1
parentb51c49aa5202823f459d52adb9c20131928712a8
[dsymutil] Better support for symbol aliases

This patch adds logic to follow a symbol's aliases when the symbol name
cannot be found in the current object file. It checks the main binary
for the symbol's address and queries the current object for its aliases
(symbols with the same address) before printing out a warning.

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

llvm-svn: 314198
llvm/test/tools/dsymutil/Inputs/alias/bar.o [new file with mode: 0644]
llvm/test/tools/dsymutil/Inputs/alias/foo.o [new file with mode: 0644]
llvm/test/tools/dsymutil/Inputs/alias/foobar [new file with mode: 0755]
llvm/test/tools/dsymutil/X86/alias.test [new file with mode: 0644]
llvm/tools/dsymutil/MachODebugMapParser.cpp