summaryrefslogtreecommitdiff
path: root/include/asm-mips/module.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-19 17:59:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-19 17:59:56 -0700
commit70e2d422332806f48d95b02716b019d9dfe2ef43 (patch)
treec2afb9ddf79ce30a88641d35b2629c605ca9cf51 /include/asm-mips/module.h
parentfb4e0779895245c02e06181a6bb4d3201734e498 (diff)
[PATCH] MIPS update
From: Ralf Baechle <ralf@linux-mips.org> - more work on resurrecting AMD Alchemy platforms - cleanup of unnecessary <asm/pgalloc.h> inclusions - update default config files - cleanup 32-bit compat ioctl code - support for Montum Jaguar ATX - workarounds for early revs of the RM9000 - fixes for RM5000 and RM7000 cache handling - add support for PMC-Sierra Yosemite eval board - further cleanup and bugfixes for SGI IP27 - make LASAT and VR41xx build and work in 2.6 - improved SGI IP32 support - plenty of small fixes
Diffstat (limited to 'include/asm-mips/module.h')
-rw-r--r--include/asm-mips/module.h33
1 files changed, 30 insertions, 3 deletions
diff --git a/include/asm-mips/module.h b/include/asm-mips/module.h
index 39bcec8134e8..99635e6b610e 100644
--- a/include/asm-mips/module.h
+++ b/include/asm-mips/module.h
@@ -1,14 +1,41 @@
#ifndef _ASM_MODULE_H
#define _ASM_MODULE_H
+#include <linux/config.h>
+
struct mod_arch_specific {
/* Data Bus Error exception tables */
const struct exception_table_entry *dbe_table_start;
const struct exception_table_entry *dbe_table_end;
};
-#define Elf_Shdr Elf32_Shdr
-#define Elf_Sym Elf32_Sym
-#define Elf_Ehdr Elf32_Ehdr
+typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */
+
+typedef struct
+{
+ Elf64_Addr r_offset; /* Address of relocation. */
+ Elf64_Word r_sym; /* Symbol index. */
+ Elf64_Byte r_ssym; /* Special symbol. */
+ Elf64_Byte r_type3; /* Third relocation. */
+ Elf64_Byte r_type2; /* Second relocation. */
+ Elf64_Byte r_type; /* First relocation. */
+ Elf64_Sxword r_addend; /* Addend. */
+} Elf64_Mips_Rela;
+
+#ifdef CONFIG_MIPS32
+
+#define Elf_Shdr Elf32_Shdr
+#define Elf_Sym Elf32_Sym
+#define Elf_Ehdr Elf32_Ehdr
+
+#endif
+
+#ifdef CONFIG_MIPS64
+
+#define Elf_Shdr Elf64_Shdr
+#define Elf_Sym Elf64_Sym
+#define Elf_Ehdr Elf64_Ehdr
+
+#endif
#endif /* _ASM_MODULE_H */