[Buildroot] MIPS arch on NPTL branch

James Chapman jchapman at katalix.com
Fri Mar 13 15:57:53 UTC 2009


Khem Raj wrote:
> On Thursday 12 March 2009 03:26:00 James Chapman wrote:
>> James Chapman wrote:
>>> Bernhard Reutner-Fischer wrote:
>>>> On Wed, Mar 04, 2009 at 05:07:03PM +0100, Carmelo AMOROSO wrote:
>>>>> you may try the following patch from Colin
>>>>>
>>>>> "The fix is to change all the "__inline__" directives in
>>>>> ldso/ldso/mips/dl-sysdep.h to inline __attribute__((always_inline))"
>>>> __always_inline
>>>>
>>>> i.e. st like
>>>> sed -i -e s/__inline__/__always_inline/g ldso/ldso/*/dl-sysdep.h
>>> Unfortunately it doesn't solve the problem.  Apps segfault. I'm
>>> investigating.
>> Just a quick update on this. I spent a little time looking into this but
>> was unable to resolve the problem. Unfortunately, the customer we're
>> currently working for don't want us to spend time fixing it - they've
>> decided to stick with their current version. :(
>>
>> However, if there are other possible fixes/patches, I'd be more than
>> happy to try them out as I have MIPS hardware.
> 
> Can you try to enable additional debugging in ldso and post the logs till when 
> it segfaults.

Sure. Here is the output with ldso debug options enabled.

_dl_get_ready_to_run:312: Cool, ldso survived making function calls
_dl_malloc:194: mmapping more memory
_dl_get_ready_to_run:496: Lib Loader: (0x2aaa8000) /lib/ld-uClibc.so.0
_dl_get_ready_to_run:806: Loading: (0x2aab6000) /lib/libcrypt.so.0
_dl_load_elf_shared_library:738: Found TLS header for /lib/libc.so.0
_dl_load_elf_shared_library:760: Relocated TLS initial image from
0x54d98 to 0x)
_dl_get_ready_to_run:806: Loading: (0x2aab9000) /lib/libc.so.0
_dl_get_ready_to_run:806: Loading: (0x2aab9000) /lib/libc.so.0
_dl_get_ready_to_run:942: Calling init_tls()!
_dl_malloc:194: mmapping more memory
_dl_get_ready_to_run:947: Beginning relocation fixups
TLS_TPREL  : , 0xc, 0xffff900c
TLS_TPREL  : __libc_h_errno, 0x0, 0x2aaad3d8
TLS_DTPMOD : __libc_resp, 0, 1
TLS_DTPREL : __libc_resp, 0x0, 0x2aaac3d8
TLS_TPREL  : __libc_resp, 0x0, 0x2aaad3d8
TLS_TPREL  : __libc_errno, 0x0, 0x2aaad3d8
TLS_TPREL  : __libc_tsd_RPC_VARS, 0x0, 0x2aaad3d8
_dl_get_ready_to_run:976: Calling _dl_allocate_tls_init()!

<hangs>


-- 
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development



More information about the uClibc mailing list