Hi,

This patch was needed to compile busybox on powerpc.

I'm using a kernel without loadable module support so I'm not sure of
the accuracy.

But, there's ppc code in that file that references the 'ifile' symbol.
 (USE_PLT_ENTRIES is defined for powerpc but 'ifile' isn't defined for
powerpc without this patch)

So someone else may have to take a look.

Wade
Index: package/busybox/busybox-1.11.1-ppc-insmod.patch
===================================================================
--- package/busybox/busybox-1.11.1-ppc-insmod.patch	(revision 0)
+++ package/busybox/busybox-1.11.1-ppc-insmod.patch	(revision 0)
@@ -0,0 +1,11 @@
+--- busybox-1.11.1/modutils/insmod.c.orig	2008-07-15 11:18:02.000000000 -0600
++++ busybox-1.11.1/modutils/insmod.c	2008-07-15 11:20:28.000000000 -0600
+@@ -840,7 +840,7 @@
+ 				ElfW(RelM) *rel, ElfW(Addr) v)
+ {
+ #if defined(__arm__) || defined(__i386__) || defined(__mc68000__) \
+- || defined(__sh__) || defined(__s390__) || defined(__x86_64__)
++ || defined(__sh__) || defined(__s390__) || defined(__x86_64__) || defined(__powerpc__)
+ 	struct arch_file *ifile = (struct arch_file *) f;
+ #endif
+ 	enum obj_reloc ret = obj_reloc_ok;
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to