[PATCH] insmod.c doesn't compile for mips

Bernhard Fischer rep.dot.nop at gmail.com
Fri Jul 18 07:43:22 UTC 2008


On Thu, Jul 17, 2008 at 05:38:22PM -0400, Brian Daniels wrote:
>The following patch will fix the compile for mips.
>
>Index: modutils/insmod.c
>===================================================================
>--- modutils/insmod.c   (revision 22874)
>+++ modutils/insmod.c   (working copy)
>@@ -841,7 +841,7 @@
>  {
>  #if defined(__arm__) || defined(__i386__) || defined(__mc68000__) \
>   || defined(__sh__) || defined(__s390__) || defined(__x86_64__) \
>- || defined(__powerpc__)
>+ || defined(__powerpc__) || defined(__mips__)
>         struct arch_file *ifile = (struct arch_file *) f;
>  #endif
>         enum obj_reloc ret = obj_reloc_ok;

you don't seem to use PLT nor GOT entries. Applied as r22876.
Thanks!
PS: Please let me know if insmod'ing works ok for you now.



More information about the busybox mailing list