diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-26 09:13:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-26 09:13:32 +0000 |
commit | 63654c1b089b8abe9a52d21fd1b53b1631539e13 (patch) | |
tree | 469e49f081f679d6f9c40632ac5da7f09feb4f59 | |
parent | 6feb2002f0994e3eb598e12ee2d9d3af5795474c (diff) | |
download | busybox-w32-63654c1b089b8abe9a52d21fd1b53b1631539e13.tar.gz busybox-w32-63654c1b089b8abe9a52d21fd1b53b1631539e13.tar.bz2 busybox-w32-63654c1b089b8abe9a52d21fd1b53b1631539e13.zip |
alpha/parisc support
-rw-r--r-- | modutils/insmod.c | 25 |
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); | |||
109 | #endif | 109 | #endif |
110 | 110 | ||
111 | 111 | ||
112 | /* Alpha */ | ||
113 | #if defined(__alpha__) | ||
114 | #define MATCH_MACHINE(x) (x == EM_ALPHA) | ||
115 | #define SHT_RELM SHT_RELA | ||
116 | #define Elf64_RelM Elf64_Rela | ||
117 | #define ELFCLASSM ELFCLASS64 | ||
118 | #endif | ||
119 | |||
112 | /* ARM support */ | 120 | /* ARM support */ |
113 | #if defined(__arm__) | 121 | #if defined(__arm__) |
114 | #define MATCH_MACHINE(x) (x == EM_ARM) | 122 | #define MATCH_MACHINE(x) (x == EM_ARM) |
@@ -135,6 +143,19 @@ extern int insmod_ng_main( int argc, char **argv); | |||
135 | #endif | 143 | #endif |
136 | #endif | 144 | #endif |
137 | 145 | ||
146 | /* PA-RISC / HP-PA */ | ||
147 | #if defined(__hppa__) | ||
148 | #define MATCH_MACHINE(x) (x == EM_PARISC) | ||
149 | #define SHT_RELM SHT_RELA | ||
150 | #if defined(__LP64__) | ||
151 | #define Elf64_RelM Elf64_Rela | ||
152 | #define ELFCLASSM ELFCLASS64 | ||
153 | #else | ||
154 | #define Elf32_RelM Elf32_Rela | ||
155 | #define ELFCLASSM ELFCLASS32 | ||
156 | #endif | ||
157 | #endif | ||
158 | |||
138 | /* H8/300 */ | 159 | /* H8/300 */ |
139 | #if defined(__H8300H__) || defined(__H8300S__) | 160 | #if defined(__H8300H__) || defined(__H8300S__) |
140 | #define MATCH_MACHINE(x) (x == EM_H8_300) | 161 | #define MATCH_MACHINE(x) (x == EM_H8_300) |
@@ -308,7 +329,7 @@ extern int insmod_ng_main( int argc, char **argv); | |||
308 | #ifndef MODUTILS_MODULE_H | 329 | #ifndef MODUTILS_MODULE_H |
309 | static const int MODUTILS_MODULE_H = 1; | 330 | static const int MODUTILS_MODULE_H = 1; |
310 | 331 | ||
311 | #ident "$Id: insmod.c,v 1.125 2004/09/02 23:03:25 andersen Exp $" | 332 | #ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $" |
312 | 333 | ||
313 | /*======================================================================*/ | 334 | /*======================================================================*/ |
314 | /* For sizeof() which are related to the module platform and not to the | 335 | /* For sizeof() which are related to the module platform and not to the |
@@ -466,7 +487,7 @@ int delete_module(const char *); | |||
466 | #ifndef MODUTILS_OBJ_H | 487 | #ifndef MODUTILS_OBJ_H |
467 | static const int MODUTILS_OBJ_H = 1; | 488 | static const int MODUTILS_OBJ_H = 1; |
468 | 489 | ||
469 | #ident "$Id: insmod.c,v 1.125 2004/09/02 23:03:25 andersen Exp $" | 490 | #ident "$Id: insmod.c,v 1.126 2004/12/26 09:13:32 vapier Exp $" |
470 | 491 | ||
471 | /* The relocatable object is manipulated using elfin types. */ | 492 | /* The relocatable object is manipulated using elfin types. */ |
472 | 493 | ||