dlsym(RTLD_NEXT) failures on ARM and MIPS with LD_PRELOAD w/ 0.9.33.2

2012-09-20 Thread Florian Fainelli
Hi all, I just updated two systems to uClibc 0.9.33.2/NPTL (ARMv5 and MIPS32r1), and I now see dlsym() returning NULL for a symbol where it should not. The situation is the following: 1) application foo links against shared library mylib and in particular the symbol bar 2) mylib2 is a shared

utils/getconf.c on MacOS X

2012-09-20 Thread Waldemar Brodkorb
Hi Developers, I am trying to use buildroot on my Mac. It is running fine (basic Qemu-MIPS image compiles and runs fine), but I have one small issue with utils/getconf.c from uClibc. Following compile error exist: HOSTCC utils/getconf.host ../utils/getconf.c:438: error:

Re: Question on selecting asm-optimised sources (or not)

2012-09-20 Thread Bernhard Reutner-Fischer
On 20 September 2012 04:03:27 Steve Bennett ste...@workware.net.au wrote: Hi All, It turns out that the asm-optimised implementations of memcpy/memmove for microblaze in libc/string/microblaze/memcpy.S are big-endian only. When building little-endian I would like to select the generic C

Re: Question on selecting asm-optimised sources (or not)

2012-09-20 Thread Steve Bennett
On 20/09/2012, at 7:13 PM, Bernhard Reutner-Fischer wrote: On 20 September 2012 04:03:27 Steve Bennett ste...@workware.net.au wrote: Hi All, It turns out that the asm-optimised implementations of memcpy/memmove for microblaze in libc/string/microblaze/memcpy.S are big-endian only. When

Re: Question on selecting asm-optimised sources (or not)

2012-09-20 Thread Bernhard Reutner-Fischer
On 20 September 2012 11:19:48 Steve Bennett ste...@workware.net.au wrote: On 20/09/2012, at 7:13 PM, Bernhard Reutner-Fischer wrote: On 20 September 2012 04:03:27 Steve Bennett ste...@workware.net.au wrote: Hi All, It turns out that the asm-optimised implementations of memcpy/memmove for

Re: dlsym(RTLD_NEXT) failures on ARM and MIPS with LD_PRELOAD w/ 0.9.33.2

2012-09-20 Thread Carmelo AMOROSO
On 20/09/2012 8.36, Florian Fainelli wrote: Hi all, Hi Florian, I just updated two systems to uClibc 0.9.33.2/NPTL (ARMv5 and MIPS32r1), and I now see dlsym() returning NULL for a symbol where it should not. Does it mean that with an older version is worked ? if so, which one ? it could

[PATCH] microblaze/bits/setjmp.h: Fix stray #endif

2012-09-20 Thread Steve Bennett
Introduced in c53099f7 Signed-off-by: Steve Bennett ste...@workware.net.au --- libc/sysdeps/linux/microblaze/bits/setjmp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libc/sysdeps/linux/microblaze/bits/setjmp.h b/libc/sysdeps/linux/microblaze/bits/setjmp.h index 5ae7381..b384878 100644

[PATCH] string/microblaze: Fix for little-endian

2012-09-20 Thread Steve Bennett
Fix the asm-optimised memcpy and memmove so they work for little-endian as well as big-endian. Testing has shown no issues, but I am not a microblaze asm expert so YMMV. Signed-off-by: Steve Bennett ste...@workware.net.au --- libc/string/microblaze/memcpy.S | 128