[llvm] [RuntimeDyld][ELF][AArch64] Fix resolveAArch64ShortBranch. (PR #92245)
Alastair Houghton via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 07:16:22 PDT 2024
al45tair wrote:
No, it's OK, I know what the problem is now. It's a bug, and it's all over the file. It'll affect building code for 64-bit targets from 32-bit hosts in various combinations :-(
(The fundamental issue is that addresses are often regarded as signed… so before extending to 64-bit, you need to cast them to an unsigned type first. Otherwise you get sign extension, but only if the address is 32-bit to start with.)
https://github.com/llvm/llvm-project/pull/92245
More information about the llvm-commits
mailing list