[lld] [llvm] [feature][riscv] handle target address calculation in llvm-objdump disassembly for riscv (PR #109914)
Arjun Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 21:58:45 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;
----------------
arjunUpatel wrote:
On me, I was aiming to match the obtained output with example expected output generated by binutils objdump in the issue description. Ill move all the non-RISCV affecting changes to another PR. Apologies for the oversight
https://github.com/llvm/llvm-project/pull/109914
More information about the llvm-commits
mailing list