summaryrefslogtreecommitdiff
path: root/backends/loongarch_reloc.def
diff options
context:
space:
mode:
Diffstat (limited to 'backends/loongarch_reloc.def')
-rw-r--r--backends/loongarch_reloc.def81
1 files changed, 81 insertions, 0 deletions
diff --git a/backends/loongarch_reloc.def b/backends/loongarch_reloc.def
new file mode 100644
index 00000000..dd4a6b6d
--- /dev/null
+++ b/backends/loongarch_reloc.def
@@ -0,0 +1,81 @@
+/* List the relocation types for LoongArch. -*- C -*-
+ This file is part of elfutils.
+
+ This file is free software; you can redistribute it and/or modify
+ it under the terms of either
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at
+ your option) any later version
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at
+ your option) any later version
+
+ or both in parallel, as here.
+
+ elfutils is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see <http://www.gnu.org/licenses/>. */
+
+/* NAME, REL|EXEC|DYN */
+
+RELOC_TYPE (NONE, EXEC|DYN)
+RELOC_TYPE (32, REL|EXEC|DYN)
+RELOC_TYPE (64, REL|EXEC|DYN)
+RELOC_TYPE (RELATIVE, EXEC|DYN)
+RELOC_TYPE (COPY, EXEC|DYN)
+RELOC_TYPE (JUMP_SLOT, EXEC|DYN)
+RELOC_TYPE (TLS_DTPMOD32, EXEC|DYN)
+RELOC_TYPE (TLS_DTPMOD64, EXEC|DYN)
+RELOC_TYPE (TLS_DTPREL32, EXEC|DYN)
+RELOC_TYPE (TLS_DTPREL64, EXEC|DYN)
+RELOC_TYPE (TLS_TPREL32, EXEC|DYN)
+RELOC_TYPE (TLS_TPREL64, EXEC|DYN)
+RELOC_TYPE (IRELATIVE, EXEC|DYN)
+RELOC_TYPE (MARK_LA, REL)
+RELOC_TYPE (MARK_PCREL, REL)
+RELOC_TYPE (SOP_PUSH_PCREL, REL)
+RELOC_TYPE (SOP_PUSH_ABSOLUTE, REL)
+RELOC_TYPE (SOP_PUSH_DUP, REL)
+RELOC_TYPE (SOP_PUSH_GPREL, REL)
+RELOC_TYPE (SOP_PUSH_TLS_TPREL, REL)
+RELOC_TYPE (SOP_PUSH_TLS_GOT, REL)
+RELOC_TYPE (SOP_PUSH_TLS_GD, REL)
+RELOC_TYPE (SOP_PUSH_PLT_PCREL, REL)
+RELOC_TYPE (SOP_ASSERT, REL)
+RELOC_TYPE (SOP_NOT, REL)
+RELOC_TYPE (SOP_SUB, REL)
+RELOC_TYPE (SOP_SL, REL)
+RELOC_TYPE (SOP_SR, REL)
+RELOC_TYPE (SOP_ADD, REL)
+RELOC_TYPE (SOP_AND, REL)
+RELOC_TYPE (SOP_IF_ELSE, REL)
+RELOC_TYPE (SOP_POP_32_S_10_5, REL)
+RELOC_TYPE (SOP_POP_32_U_10_12, REL)
+RELOC_TYPE (SOP_POP_32_S_10_12, REL)
+RELOC_TYPE (SOP_POP_32_S_10_16, REL)
+RELOC_TYPE (SOP_POP_32_S_10_16_S2, REL)
+RELOC_TYPE (SOP_POP_32_S_5_20, REL)
+RELOC_TYPE (SOP_POP_32_S_0_5_10_16_S2, REL)
+RELOC_TYPE (SOP_POP_32_S_0_10_10_16_S2, REL)
+RELOC_TYPE (SOP_POP_32_U, REL)
+RELOC_TYPE (ADD8, REL)
+RELOC_TYPE (ADD16, REL)
+RELOC_TYPE (ADD24, REL)
+RELOC_TYPE (ADD32, REL)
+RELOC_TYPE (ADD64, REL)
+RELOC_TYPE (SUB8, REL)
+RELOC_TYPE (SUB16, REL)
+RELOC_TYPE (SUB24, REL)
+RELOC_TYPE (SUB32, REL)
+RELOC_TYPE (SUB64, REL)
+RELOC_TYPE (GNU_VTINHERIT, REL)
+RELOC_TYPE (GNU_VTENTRY, REL)