mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
Fix llvm-objdump disassembly for interesting Mach-O binaries, e.g. any MacOS
dylib. This regressed with r145408. I will try to make a test case and add it so that this doesn't happen again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e3f7e4913
commit
aab2191109
@ -189,6 +189,8 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
|||||||
if (!error(i->containsSymbol(*si, contains)) && contains) {
|
if (!error(i->containsSymbol(*si, contains)) && contains) {
|
||||||
uint64_t Address;
|
uint64_t Address;
|
||||||
if (error(si->getAddress(Address))) break;
|
if (error(si->getAddress(Address))) break;
|
||||||
|
Address -= SectionAddr;
|
||||||
|
|
||||||
StringRef Name;
|
StringRef Name;
|
||||||
if (error(si->getName(Name))) break;
|
if (error(si->getName(Name))) break;
|
||||||
Symbols.push_back(std::make_pair(Address, Name));
|
Symbols.push_back(std::make_pair(Address, Name));
|
||||||
|
Loading…
Reference in New Issue
Block a user