[llvm] [SPARC][MC] Fix `%gdop_hix22()` and `%gdop_lox10()` to use correct relocations (PR #137915)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat May 3 18:11:31 PDT 2025
================
@@ -202,9 +203,9 @@ namespace {
{ "fixup_sparc_tls_le_lox10", 0, 0, 0 },
{ "fixup_sparc_hix22", 10, 22, 0 },
{ "fixup_sparc_lox10", 19, 13, 0 },
- { "fixup_sparc_gotdata_hix22", 0, 0, 0 },
- { "fixup_sparc_gotdata_lox10", 0, 0, 0 },
- { "fixup_sparc_gotdata_op", 0, 0, 0 },
+ { "fixup_sparc_gotdata_op_hix22", 10, 22, 0 },
----------------
MaskRay wrote:
For fixup kinds that always map to relocation types (e.g. GOT-generating and TLS relocation types), the offset/length fields can be kept as 0. The only difference is in the -filetype=asm -show-encoding output, which is not really relevant. (We should test relocations using -filetype=obj; the -filetype=asm -show-encoding output is informal.)
https://github.com/llvm/llvm-project/pull/137915
More information about the llvm-commits
mailing list