aboutsummaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2022-05-23 12:04:26 +0100
committerNick Clifton <nickc@redhat.com>2022-05-23 12:04:26 +0100
commit27049a382fe50249c6408d3d92bb7a833c2194a6 (patch)
tree2ef2ff9ce153a70f0b1cf175d0c0df78e9bec3c1 /include/coff
parentcb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d (diff)
downloadgdb-27049a382fe50249c6408d3d92bb7a833c2194a6.zip
gdb-27049a382fe50249c6408d3d92bb7a833c2194a6.tar.gz
gdb-27049a382fe50249c6408d3d92bb7a833c2194a6.tar.bz2
ld: use definitions in generate_reloc rather than raw literals
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/internal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/coff/internal.h b/include/coff/internal.h
index f12908b..4d2046e 100644
--- a/include/coff/internal.h
+++ b/include/coff/internal.h
@@ -694,4 +694,20 @@ struct internal_reloc
unsigned long r_offset; /* Used by Alpha ECOFF, SPARC, others */
};
+#define IMAGE_REL_BASED_ABSOLUTE 0
+#define IMAGE_REL_BASED_HIGH 1
+#define IMAGE_REL_BASED_LOW 2
+#define IMAGE_REL_BASED_HIGHLOW 3
+#define IMAGE_REL_BASED_HIGHADJ 4
+#define IMAGE_REL_BASED_MIPS_JMPADDR 5
+#define IMAGE_REL_BASED_ARM_MOV32 5
+#define IMAGE_REL_BASED_RISCV_HIGH20 5
+#define IMAGE_REL_BASED_THUMB_MOV32 7
+#define IMAGE_REL_BASED_RISCV_LOW12I 7
+#define IMAGE_REL_BASED_RISCV_LOW12S 8
+#define IMAGE_REL_BASED_LOONGARCH32_MARK_LA 8
+#define IMAGE_REL_BASED_LOONGARCH64_MARK_LA 8
+#define IMAGE_REL_BASED_MIPS_JMPADDR16 9
+#define IMAGE_REL_BASED_DIR64 10
+
#endif /* GNU_COFF_INTERNAL_H */