Problem with libpthread of uClibc

2009-05-29 Thread Nitin Garg
Hi, We are using ARM Cortex-A9 processor. The toolchain is gcc-4.0.0 with uClibc-0.9.30 and the kernel is 2.6.28. Using this toolchain when we build any application like Hello World and link it against pthread lib, the application does a segmentation fault when executed on target and gives

Re: Problem with libpthread of uClibc

2009-05-29 Thread Umut Tezduyar
Hi Nitin, I think both you and I are having the same problem. My question on the thread is one before yours. First, I don't think you can use ldrex and strex because they will not be atomic. SWP instruction swaps register value with the value at memory address. Swapping values with SWP

Dynamic loading library support (libdl) for no-mmu?

2009-05-29 Thread Umut Tezduyar
Hi, Does any body know if I can get libdl compiled for a no-mmu product? It looks like when you select your controller architecture at make menuconfig, it sets yes mmu or no mmu option which eventually effects shared library support. Even though I don't use mmu in my product, I still want to be

Re: Dynamic loading library support (libdl) for no-mmu?

2009-05-29 Thread Mike Frysinger
On Friday 29 May 2009 18:16:55 Umut Tezduyar wrote: Does any body know if I can get libdl compiled for a no-mmu product? your port needs to support the FDPIC ELF format. libdl doesnt work with the FLAT format for obvious reasons. -mike signature.asc Description: This is a digitally signed

Re: Dynamic loading library support (libdl) for no-mmu?

2009-05-29 Thread Umut Tezduyar
Hi Mike, I guess, I didn't quite understand your reply. What do you mean by my port? Also, even before libdl support, it seems like there is no option in uclibc configuration to generate libdl.a when I select a no-mmu processor. First, I need to compile libdl on uclibc. So, if I make libdl work,

Re: Problem with libpthread of uClibc

2009-05-29 Thread Nitin Garg
Sorry for typo we are using gcc-4.4.0. Sent from my iPhone On May 29, 2009, at 4:56 PM, Umut Tezduyar m...@tezduyar.com wrote: Hi Nitin, I think both you and I are having the same problem. My question on the thread is one before yours. First, I don't think you can use ldrex and strex

Re: Dynamic loading library support (libdl) for no-mmu?

2009-05-29 Thread Mike Frysinger
On Friday 29 May 2009 21:09:11 Umut Tezduyar wrote: Hi Mike, please do not top post I guess, I didn't quite understand your reply. What do you mean by my port? your architecture Also, even before libdl support, it seems like there is no option in uclibc configuration to generate libdl.a