[PATCH]mips: ldso: dlopen with flag RTLD_NOW should look up the symbols

Jean Lee xiaoyur347 at gmail.com
Sun Mar 15 12:16:19 UTC 2015


> (1)mipsel-linux-gnu 4.8.4(compiled by Broadcom)
> mipsel-linux-gnu-gcc 4.8.4
> binutils 2.24 (GNU ld (GNU Binutils) 2.24.0.20140801 Linaro 2014.08)
> libc 2.18-2013.10
> It's not uclibc.

I do further test in this platform.
(1) If dlopen with flag RTLD_NOW, the result is:
open ./libtest_mips.so fail. ./libtest_mips.so: undefined symbol:
not_exist_function
And the program continues running.
(2) If dlopen with flag RTLD_LAZY, the result is:
./mips_test: symbol lookup error: ./libtest_mips.so: undefined symbol:
not_exist_function
And the program exits.

So I guess eglibc may do something more for mips dlopen.
Does anyone know it?


More information about the uClibc mailing list