[all-commits] [llvm/llvm-project] c447f6: [SPARC] Fix %hi/%lo of absolute expressions in PIC...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Aug 9 01:56:54 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c447f608e8466e80e644ae4c6d3e7f3b866bb4e6
https://github.com/llvm/llvm-project/commit/c447f608e8466e80e644ae4c6d3e7f3b866bb4e6
Author: Fangrui Song <i at maskray.me>
Date: 2026-08-09 (Sun, 09 Aug 2026)
Changed paths:
M llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
A llvm/test/MC/Sparc/Relocations/absolute-hi-lo.s
M llvm/test/MC/Sparc/Relocations/relocation-specifier.s
Log Message:
-----------
[SPARC] Fix %hi/%lo of absolute expressions in PIC mode (#215066)
adjustPICRelocation maps %hi/%lo to GOT22/PC22 or GOT10/PC10 at parse
time, before the operand is known to be absolute. adjustFixupValue has
no case for the GOT types, so an absolute operand encodes the unshifted
value:
Encode %got22/%got10 like %hi/%lo. Also drop them as input syntax; GNU
as has no such operators.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list