Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Add some more reloc types as well a...



details:   https://anonhg.NetBSD.org/src/rev/95415836fbf3
branches:  trunk
changeset: 760875:95415836fbf3
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jan 15 10:00:07 2011 +0000

description:
Add some more reloc types as well as DT_PPC_GOT

diffstat:

 sys/arch/powerpc/include/elf_machdep.h |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r dd4c48bab8ba -r 95415836fbf3 sys/arch/powerpc/include/elf_machdep.h
--- a/sys/arch/powerpc/include/elf_machdep.h    Sat Jan 15 07:31:11 2011 +0000
+++ b/sys/arch/powerpc/include/elf_machdep.h    Sat Jan 15 10:00:07 2011 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index