[2/2] backends: Update list of LoongArch relocations

Message ID 20240223044728.24959-3-xry111@xry111.site
State Committed
Headers
Series Update LoongArch relocations for psABI v2.30 |

Commit Message

Xi Ruoyao Feb. 23, 2024, 4:47 a.m. UTC
  Signed-off-by: Xi Ruoyao <xry111@xry111.site>
---
 backends/loongarch_reloc.def | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
  

Patch

diff --git a/backends/loongarch_reloc.def b/backends/loongarch_reloc.def
index a39eefd9..cdc83211 100644
--- a/backends/loongarch_reloc.def
+++ b/backends/loongarch_reloc.def
@@ -128,3 +128,20 @@  RELOC_TYPE (SUB6,			REL)
 RELOC_TYPE (ADD_ULEB128,		REL)
 RELOC_TYPE (SUB_ULEB128,		REL)
 RELOC_TYPE (64_PCREL,			REL)
+RELOC_TYPE (CALL36,			REL)
+RELOC_TYPE (TLS_DESC_PC_HI20,		REL)
+RELOC_TYPE (TLS_DESC_PC_LO12,		REL)
+RELOC_TYPE (TLS_DESC64_PC_LO20,		REL)
+RELOC_TYPE (TLS_DESC64_PC_HI12,		REL)
+RELOC_TYPE (TLS_DESC_HI20,		REL)
+RELOC_TYPE (TLS_DESC_LO12,		REL)
+RELOC_TYPE (TLS_DESC64_LO20,		REL)
+RELOC_TYPE (TLS_DESC64_HI12,		REL)
+RELOC_TYPE (TLS_DESC_LD,		REL)
+RELOC_TYPE (TLS_DESC_CALL,		REL)
+RELOC_TYPE (TLS_LE_HI20_R,		REL)
+RELOC_TYPE (TLS_LE_ADD_R,		REL)
+RELOC_TYPE (TLS_LE_LO12_R,		REL)
+RELOC_TYPE (TLS_LD_PCREL20_S2,		REL)
+RELOC_TYPE (TLS_GD_PCREL20_S2,		REL)
+RELOC_TYPE (TLS_DESC_PCREL20_S2,	REL)