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
llvm/tools/llvm-objdump
|
@ -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
|
||||
// --stop-address.
|
||||
uint64_t End = std::min<uint64_t>(
|
||||
SI + 1 < SE ? std::get<0>(Symbols[SI + 1]) : SectionAddr + SectSize,
|
||||
StopAddress);
|
||||
uint64_t End = std::min<uint64_t>(SectionAddr + SectSize, StopAddress);
|
||||
if (SI + 1 < SE)
|
||||
End = std::min(End, std::get<0>(Symbols[SI + 1]));
|
||||
if (Start >= End || End <= StartAddress)
|
||||
continue;
|
||||
Start -= SectionAddr;
|
||||
|
|
Loading…
Reference in New Issue