[llvm-branch-commits] llvm-jitlink: Fix bug in target address computation. (PR #138794)
Peter Collingbourne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 6 19:02:24 PDT 2025
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/138794
llvm-jitlink has a bug revealed by my followup change where the
RuntimeDyldChecker::MemoryRegionInfo::TargetAddress field was
incorrectly being set to the address of the first symbol in the
section instead of the address of the section, which caused the
ExecutionEngine/JITLink/x86-64/ELF_small_pic_relocations.s test to
fail, so fix that for ELF. It looks like the same bug could exist for
the other object formats (but maybe not for Mach-O because of the atom
model?) but I'm not familiar with the JIT linker so I left them as is.
This change will be tested implicitly when my followup change lands.
More information about the llvm-branch-commits
mailing list