[uClibc] Kernel 2.4 and gcc 3.4

Jean Wolter jw5 at os.inf.tu-dresden.de
Mon Feb 28 11:51:03 UTC 2005


Thomas Lundquist <lists at zelow.no> writes:

> But, with -Os, the kernel fails to work properly. modules ends up with
> lacking some symbols (memcmp if I remember correctly.)

The following patch solved the memcmp problem for us.

regards,
Jean
--- linux-2.4.29/arch/i386/kernel/i386_ksyms.c	Wed Apr 14 15:05:25 2004
+++ linux-2.4.29-new/arch/i386/kernel/i386_ksyms.c	Tue Feb  8 12:52:39 2005
@@ -170,10 +170,13 @@
 
 #undef memcpy
 #undef memset
+#undef memcmp
 extern void * memset(void *,int,__kernel_size_t);
 extern void * memcpy(void *,const void *,__kernel_size_t);
+extern int memcmp(const void * cs,const void * ct,size_t count);
 EXPORT_SYMBOL_NOVERS(memcpy);
 EXPORT_SYMBOL_NOVERS(memset);
+EXPORT_SYMBOL_NOVERS(memcmp);
 
 #ifdef CONFIG_HAVE_DEC_LOCK
 EXPORT_SYMBOL(atomic_dec_and_lock);



More information about the uClibc mailing list