Module Name: src
Committed By: matt
Date: Sat Jan 15 10:00:07 UTC 2011
Modified Files:
src/sys/arch/powerpc/include: elf_machdep.h
Log Message:
Add some more reloc types as well as DT_PPC_GOT
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/include/elf_machdep.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/include/elf_machdep.h
diff -u src/sys/arch/powerpc/include/elf_machdep.h:1.8 src/sys/arch/powerpc/include/elf_machdep.h:1.9
--- src/sys/arch/powerpc/include/elf_machdep.h:1.8 Sat May 30 05:56:53 2009
+++ src/sys/arch/powerpc/include/elf_machdep.h Sat Jan 15 10:00:07 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: elf_machdep.h,v 1.8 2009/05/30 05:56:53 skrll Exp $ */
+/* $NetBSD: elf_machdep.h,v 1.9 2011/01/15 10:00:07 matt Exp $ */
#define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB
#define ELF32_MACHDEP_ID_CASES \
@@ -19,6 +19,9 @@
#define ARCH_ELFSIZE 32 /* MD native binary size */
#endif
+/* Specify the value of _GLOBAL_OFFSET_TABLE_ */
+#define DT_PPC_GOT DT_LOPROC
+
#define R_PPC_NONE 0
#define R_PPC_32 1
#define R_PPC_24 2
@@ -51,7 +54,12 @@
#define R_PPC_PLT16_LO 29
#define R_PPC_PLT16_HI 30
#define R_PPC_PLT16_HA 31
-#define R_PPC_SDAREL 32
+#define R_PPC_SDAREL16 32
+#define R_PPC_SECTOFF 33
+#define R_PPC_SECTOFF_LO 34
+#define R_PPC_SECTOFF_HI 35
+#define R_PPC_SECTOFF_HA 36
+#define R_PPC_ADDR30 37
/* TLS relocations */
#define R_PPC_TLS 67
@@ -88,4 +96,10 @@
#define R_PPC_TLSGD 95
#define R_PPC_TLSLD 96
+/* Used for the secure-plt PIC code sequences */
+#define R_PPC_REL16 249
+#define R_PPC_REL16_LO 250
+#define R_PPC_REL16_HI 251
+#define R_PPC_REL16_HA 252
+
#define R_TYPE(name) __CONCAT(R_PPC_,name)