Re: Fun with the dynamic loader.

2008-11-14 Thread Haavard Skinnemoen
Rob Landley [EMAIL PROTECTED] wrote: Only three architectures actually #define this macro: frv, bfin, and avr32. The last of which does: ./avr32/dl-startup.h:#define START()return _dl_elf_main; So it's #defining the macro to do what the absence of the macro would do. Why? I don't

Re: Fun with the dynamic loader.

2008-11-14 Thread Carmelo AMOROSO
Rob Landley wrote: While debugging why the dynamic loader is just not working for me on sparc, I stumbled across this little gem: Near the end of ldso/ldso/dl-startup.c we have the only user of the START() macro: #ifndef START return _dl_elf_main; #else START();

[PATCH] ld.so_nptl: bug discovered while running firefox 3

2008-11-14 Thread Carmelo AMOROSO
Hi Khem, All while doing some test with firefox 3 (linked against uclibc-nptl on sh4), we discovered a bug in ld.so dynamic linker. In firefox there is a shared object libejmalloc.so having a constructor that accesses a TLS variable using the local-dynamic tls access model. During the ld.so

Re: Fun with the dynamic loader.

2008-11-14 Thread Rob Landley
On Friday 14 November 2008 12:01:28 Bernd Schmidt wrote: Like all the other target-specific macros, it's abstracting away target-specific stuff. In the case of bfin and frv, it's FD-PIC related setup. So no, you can't remove it, and you can't merge it in with the main file if you want FD-PIC

Re: mknod bug (in uClibc)

2008-11-14 Thread Khem Raj
I posted a patch back in march which got lost in the pile. http://www.uclibc.org/lists/uclibc/2008-March/019155.html Thx -Khem On Thu, Nov 13, 2008 at 8:21 PM, Rob Landley [EMAIL PROTECTED] wrote: On Thursday 13 November 2008 18:55:31 Doug Graham wrote: On Thu, Nov 13, 2008 at 06:48:41PM

Re: mknod bug (in uClibc)

2008-11-14 Thread Rob Landley
On Friday 14 November 2008 14:35:49 Khem Raj wrote: I posted a patch back in march which got lost in the pile. http://www.uclibc.org/lists/uclibc/2008-March/019155.html I think that's overcomplicated. There's no need for long long here (which remains expensive on 32 bit systems) merely for

Re: Fun with the dynamic loader.

2008-11-14 Thread Bernd Schmidt
Rob Landley wrote: Can you explain what FD-PIC is in fewer words than this guy? It's a binary format. It works on nommu, but unlike flat, it allows all the normal ELF things like shared libraries and dynamic loading. It needs compiler linker support so it's not something you can implement in