[llvm] [SPARC] Update the list of ELF relocation types (PR #137916)
Alex Rønne Petersen via llvm-commits
llvm-commits at lists.llvm.org
Fri May 2 20:49:09 PDT 2025
================
@@ -87,3 +87,12 @@ ELF_RELOC(R_SPARC_GOTDATA_LOX10, 81)
ELF_RELOC(R_SPARC_GOTDATA_OP_HIX22, 82)
ELF_RELOC(R_SPARC_GOTDATA_OP_LOX10, 83)
ELF_RELOC(R_SPARC_GOTDATA_OP, 84)
+ELF_RELOC(R_SPARC_H34, 85)
----------------
alexrp wrote:
All entries up to `R_SPARC_WDISP10` are [specified in Solaris docs](https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-54839.html), so it seems appropriate to keep those at least.
`R_SPARC_REV32` also seems to be legacy, so I'll remove that along with the GNU ones.
I am unsure about `R_SPARC_JMP_IREL`. This relocation kind only seems to exist for PPC64 and SPARC. LLVM doesn't declare the PPC64 one, though, so I suppose it's safe to omit the SPARC one as well.
https://github.com/llvm/llvm-project/pull/137916
More information about the llvm-commits
mailing list