[BusyBox] Insmod on MIPS
Dirk Behme (FV/SLM)*
dirk.behme at de.bosch.com
Thu Mar 22 06:57:47 UTC 2001
Hello,
for compiling insmod.c of BusyBox 0.50 for MIPS I had to add some lines
to insmod.c (see insmod.patch below). I think EM_MIPS_RS3_LE was
undefined without these lines. Then it works fine.
Thanks for porting insmod to MIPS!
Dirk
--
Dirk Behme, dirk.behme at de.bosch.com
-------------- next part --------------
*** busybox-0.50/insmod.c_orig Thu Mar 22 08:39:03 2001
--- busybox-0.50/insmod.c Thu Mar 22 08:42:05 2001
***************
*** 374,377 ****
--- 374,386 ----
#elif defined(__mips__)
+ /* Account for ELF spec changes. */
+ #ifndef EM_MIPS_RS3_LE
+ #ifdef EM_MIPS_RS4_BE
+ #define EM_MIPS_RS3_LE EM_MIPS_RS4_BE
+ #else
+ #define EM_MIPS_RS3_LE 10
+ #endif
+ #endif /* !EM_MIPS_RS3_LE */
+
#define MATCH_MACHINE(x) (x == EM_MIPS || x == EM_MIPS_RS3_LE)
#define SHT_RELM SHT_REL
***************
*** 794,798 ****
--- 803,809 ----
{
struct arch_file *ifile = (struct arch_file *) f;
+ #if !(defined(__mips__))
struct arch_symbol *isym = (struct arch_symbol *) sym;
+ #endif
ElfW(Addr) *loc = (ElfW(Addr) *) (targsec->contents + rel->r_offset);
More information about the busybox
mailing list