[lld] [llvm] [feature][riscv] handle target address calculation in llvm-objdump disassembly for riscv (PR #109914)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 21:51:06 PDT 2025
================
@@ -2392,14 +2393,18 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
[=](const std::pair<uint64_t, SectionRef> &O) {
return O.first <= Target;
});
- uint64_t TargetSecAddr = 0;
+ uint64_t TargetSecAddr = It == SectionAddresses.end() ? 0 : It->first;
----------------
topperc wrote:
This change should probably be its own PR? It's not described in the title or description. As titled, the patch looks like a riscv only change, but it's not.
https://github.com/llvm/llvm-project/pull/109914
More information about the llvm-commits
mailing list