[uClibc] Anyone using MIPS shared libraries?
Mark S. Mathews
mark at linux-wlan.com
Tue Jul 26 13:59:51 UTC 2005
Just for completeness:
It's pretty old, but here's a description of the sharedlib uclibc
toolchain I've run successfully against a couple of MIPS targets (AMD
and Toshiba):
gcc-3.2.2-uClibc-0.9.19-binutils-2.13.2.1-linux-2.4.18-mipsel
As I recall, I built it using the old pre-buildroot crosstools stuff.
-M
On Tue, 26 Jul 2005, Clark Williams wrote:
> I built uClibc (0.9.27) for a MIPS 4kc (MIPS32) and am seeing a segfault
> in ld-uClibc.so.
>
> I haven't gone into full-up debug mode yet, but I did turn on debug
> prints and have found that the segfault occurs in _dl_start(), in the
> relocation loop where rel_addr is added to load_addr. My guess is that
> rel_addr should be an offset that is added to load_addr to form the
> address of the relocations. Unfortunately, rel_addr has been turned into
> a vaddr by the PERFORM_BOOTSTRAP_GOT() macro, so the result of adding
> rel_addr and load_address is a really big VA which points nowhere.
> Segfault is when the address is used as a structure pointer.
>
> Just wondering how much love the MIPS dynamic loader has received in
> recent days. Any thoughts would be welcome.
>
> Think I'll go turn off that PERFORM_BOOTSTRAP_GOT macro and see what
> happens...:)
>
> Clark
>
>
--
Mark S. Mathews
AbsoluteValue Systems Web: http://www.linux-wlan.com
721-D North Drive e-mail: mark at linux-wlan.com
Melbourne, FL 32934 Phone: 321.259.0737
USA Fax: 321.259.0286
More information about the uClibc
mailing list