summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-10 14:33:57 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-10 14:33:57 +0000
commitfe021cbb0574494a3a146c7ca3e937f04249994f (patch)
treedd873c0166e40415bc5b91cb4e40f590c09416f0
parentea23c5a7f9df77cac31a9d961576787d6fad6e2f (diff)
downloadFreeBSD-src-fe021cbb0574494a3a146c7ca3e937f04249994f.zip
FreeBSD-src-fe021cbb0574494a3a146c7ca3e937f04249994f.tar.gz
Add definitions for powerpc64 ELF relocation types. Some 64-bit relocations
are identical to 32-bit relocations in meaning, name, and number, and I have chosen not to duplicate those here.
-rw-r--r--sys/sys/elf_common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 39f6d34..5d43634 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -781,6 +781,27 @@ typedef struct {
#define R_PPC_SECTOFF_HA 36
/*
+ * 64-bit relocations
+ */
+#define R_PPC64_ADDR64 38
+#define R_PPC64_ADDR16_HIGHER 39
+#define R_PPC64_ADDR16_HIGHERA 40
+#define R_PPC64_ADDR16_HIGHEST 41
+#define R_PPC64_ADDR16_HIGHESTA 42
+#define R_PPC64_UADDR64 43
+#define R_PPC64_REL64 44
+#define R_PPC64_PLT64 45
+#define R_PPC64_PLTREL64 46
+#define R_PPC64_TOC16 47
+#define R_PPC64_TOC16_LO 48
+#define R_PPC64_TOC16_HI 49
+#define R_PPC64_TOC16_HA 50
+#define R_PPC64_TOC 51
+#define R_PPC64_DTPMOD64 68
+#define R_PPC64_TPREL64 73
+#define R_PPC64_DTPREL64 78
+
+/*
* TLS relocations
*/
#define R_PPC_TLS 67
OpenPOWER on IntegriCloud