[lld] [llvm] [AArch64][COFF] Fix HI12 SECREL miscompile in adjustFixupValue (PR #199602)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 14:01:05 PDT 2026


mstorsjo wrote:

> @mstorsjo Are you looking at the most recent version of the fix (pushed about an hour ago)? I think your analysis of lld behavior is correct, but the latest fix avoids the issue by avoiding the use of offsets.

Hmm, I see - apparently I did misread the output of the change when I tested it with my repro snippet when I wrote the above.

In that case I think this fix may be correct (I haven't read and reviewed the code itself yet), in the sense of not breaking anything, but for the cases when the immediate offset is < 12 bits, it may be unnecessary, as we can encode that offset properly.

https://github.com/llvm/llvm-project/pull/199602


More information about the llvm-commits mailing list