summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorMike Frysinger2006-06-06 06:15:52 +0000
committerMike Frysinger2006-06-06 06:15:52 +0000
commitb306cb767fc6a823da06b6540df158ddfc55782e (patch)
tree61164d005277319f6d72c726f0123ac2d593588d /modutils
parent8e640a1043ad9fe08782387a55230ebb824b4163 (diff)
downloadbusybox-b306cb767fc6a823da06b6540df158ddfc55782e.zip
busybox-b306cb767fc6a823da06b6540df158ddfc55782e.tar.gz
merge blackfin/microblaze from uClinux-dist
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index f8464db..f694329 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -117,6 +117,14 @@ extern int insmod_ng_main( int argc, char **argv);
#define CONFIG_USE_SINGLE
#endif
+/* blackfin */
+#if defined(BFIN)
+#define MATCH_MACHINE(x) (x == EM_BLACKFIN)
+#define SHT_RELM SHT_RELA
+#define Elf32_RelM Elf32_Rela
+#define ELFCLASSM ELFCLASS32
+#endif
+
/* CRIS */
#if defined(__cris__)
#define MATCH_MACHINE(x) (x == EM_CRIS)
@@ -187,6 +195,15 @@ extern int insmod_ng_main( int argc, char **argv);
#define CONFIG_USE_SINGLE
#endif
+/* Microblaze */
+#if defined(__microblaze__)
+#define CONFIG_USE_SINGLE
+#define MATCH_MACHINE(x) (x == EM_XILINX_MICROBLAZE)
+#define SHT_RELM SHT_RELA
+#define Elf32_RelM Elf32_Rela
+#define ELFCLASSM ELFCLASS32
+#endif
+
/* MIPS */
#if defined(__mips__)
#define MATCH_MACHINE(x) (x == EM_MIPS || x == EM_MIPS_RS3_LE)