git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149674
91177308-0d34-0410-b5e6-
96231b3b80d8
continue;
// Start at the address of the symbol relative to the section's address.
continue;
// Start at the address of the symbol relative to the section's address.
+ uint64_t SectionAddress = 0;
+ Sections[SectIdx].getAddress(SectionAddress);
Symbols[SymIdx].getAddress(Start);
Symbols[SymIdx].getAddress(Start);
+ Start -= SectionAddress;
// Stop disassembling either at the beginning of the next symbol or at
// the end of the section.
// Stop disassembling either at the beginning of the next symbol or at
// the end of the section.
Sections[SectIdx].containsSymbol(Symbols[NextSymIdx],
containsNextSym);
Symbols[NextSymIdx].getAddress(NextSym);
Sections[SectIdx].containsSymbol(Symbols[NextSymIdx],
containsNextSym);
Symbols[NextSymIdx].getAddress(NextSym);
+ NextSym -= SectionAddress;