forked from OSchip/llvm-project
[llvm-objdump] Fix End in disassemblyObject after rL358806
llvm-svn: 358809
This commit is contained in:
parent
2e33f8de57
commit
b48e41be96
|
@ -1153,9 +1153,9 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj,
|
||||||
|
|
||||||
// The end is the section end, the beginning of the next symbol, or
|
// The end is the section end, the beginning of the next symbol, or
|
||||||
// --stop-address.
|
// --stop-address.
|
||||||
uint64_t End = std::min<uint64_t>(
|
uint64_t End = std::min<uint64_t>(SectionAddr + SectSize, StopAddress);
|
||||||
SI + 1 < SE ? std::get<0>(Symbols[SI + 1]) : SectionAddr + SectSize,
|
if (SI + 1 < SE)
|
||||||
StopAddress);
|
End = std::min(End, std::get<0>(Symbols[SI + 1]));
|
||||||
if (Start >= End || End <= StartAddress)
|
if (Start >= End || End <= StartAddress)
|
||||||
continue;
|
continue;
|
||||||
Start -= SectionAddr;
|
Start -= SectionAddr;
|
||||||
|
|
Loading…
Reference in New Issue