[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:50:03 PDT 2025


https://github.com/alexrp updated https://github.com/llvm/llvm-project/pull/137916

>From 60eb63225db4c9a6ce85fcfc76e9aced3e636b90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= <alex at alexrp.com>
Date: Wed, 30 Apr 2025 04:34:54 +0200
Subject: [PATCH] [SPARC] Update the list of ELF relocation types.

---
 llvm/include/llvm/BinaryFormat/ELFRelocs/Sparc.def | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/llvm/include/llvm/BinaryFormat/ELFRelocs/Sparc.def b/llvm/include/llvm/BinaryFormat/ELFRelocs/Sparc.def
index 7e01a4a8a0a06..00194bc2e7200 100644
--- a/llvm/include/llvm/BinaryFormat/ELFRelocs/Sparc.def
+++ b/llvm/include/llvm/BinaryFormat/ELFRelocs/Sparc.def
@@ -87,3 +87,8 @@ 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)
+ELF_RELOC(R_SPARC_SIZE32,         86)
+ELF_RELOC(R_SPARC_SIZE64,         87)
+ELF_RELOC(R_SPARC_WDISP10,        88)
+ELF_RELOC(R_SPARC_IRELATIVE,      249)



More information about the llvm-commits mailing list