aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-26 09:13:32 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-26 09:13:32 +0000
commit63654c1b089b8abe9a52d21fd1b53b1631539e13 (patch)
tree469e49f081f679d6f9c40632ac5da7f09feb4f59
parent6feb2002f0994e3eb598e12ee2d9d3af5795474c (diff)
downloadbusybox-63654c1b089b8abe9a52d21fd1b53b1631539e13.tar.gz
alpha/parisc support
-rw-r--r--modutils/insmod.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index d88dd1be6..04a7bc578 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -109,6 +109,14 @@ extern int insmod_ng_main( int argc, char **argv);
#endif
+/* Alpha */
+#if defined(__alpha__)
+#define MATCH_MACHINE(x) (x == EM_ALPHA)
+#define SHT_RELM SHT_RELA
+#define Elf64_RelM Elf64_Rela
+#define ELFCLASSM ELFCLASS64
+#endif
+
/* ARM support */
#if defined(__arm__)
#define MATCH_MACHINE(x) (x == EM_ARM)
@@ -135,6 +143,19 @@ extern int insmod_ng_main( int argc, char **argv);
#endif
#endif
+/* PA-RISC / HP-PA */
+#if defined(__hppa__)
+#define MATCH_MACHINE(x) (x == EM_PARISC)
+#define SHT_RELM SHT_RELA
+#if defined(__LP64__)
+#define Elf64_RelM Elf64_Rela
+#define ELFCLASSM ELFCLASS64
+#else
+#define Elf32_RelM Elf32_Rela
+#define ELFCLASSM ELFCLASS32
+#endif
+#endif
+
/* H8/300 */
#if defined(__H8300H__) || defined(__H8300S__)
#define MATCH_MACHINE(x) (x == EM_H8_300)
@@ -308,7 +329,7 @@ extern int insmod_ng_main( int argc, char **argv);
#ifndef MODUTILS_MODULE_H
static const int MODUTILS_MODULE_H = 1;
-#ident "$Id: insmod.c,v 1.125 2004/09/02 23:03:25 andersen Exp $"
+#ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $"
/*======================================================================*/
/* For sizeof() which are related to the module platform and not to the
@@ -466,7 +487,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H
static const int MODUTILS_OBJ_H = 1;
-#ident "$Id: insmod.c,v 1.125 2004/09/02 23:03:25 andersen Exp $"
+#ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $"
/* The relocatable object is manipulated using elfin types. */