From 3f762e402543e471a712c1bcde87a954821ed244 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 14 Sep 2005 00:03:23 +0000 Subject: [PATCH] merge alpha/parisc support from trunk --- busybox/modutils/insmod.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/busybox/modutils/insmod.c b/busybox/modutils/insmod.c index 60f5cf1c7..3f98df658 100644 --- a/busybox/modutils/insmod.c +++ b/busybox/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) -- 2.25.1