[uClibc] "Bug" in the shared library loader 0.9.26 ?
Hulshof, Robert
Robert.Hulshof at echostar.com
Tue Feb 3 17:44:19 UTC 2004
FYI,
There seems to be bug in the shared library loader in uclibc revision 0.9.26
when compiled with gcc-3.2 toolchain for a MIPS (4600) processor.
In file "readelflib1.c" in function: _dl_check_if_named_library_is_loaded()
The following variable is defined:
static const char *libc = "libc.so.";
This line compiles OK, but when used a couple lines later as argument in
function call:
_dl_strncmp(libname, libc, 8)
It causes a segmentation fault.
There is a string "libc.so." allocated in the .so file, but apparently the
libc pointer does NOT point to this string.
To prevent the segmentation fault. I modified the line to:
static const char libc[] = "libc.so.";
Regards,
Robert Hulshof
More information about the uClibc
mailing list