[yocto] [prelink-cross] error while loading shared libraries: ld-linux.so.3

Florian Boehmak florian at fnbk.cc
Tue Jun 16 09:39:59 PDT 2015


Hi, I tried to track down the error message which comes from rtld. This is
the call stack:

rtld.c:main()
    rtld.c:process_one_dso()
        dl-version.c:_dl_check_map_versions()



This is the code that produces the error message:

Elf64_Vernaux *aux;
struct link_map *needed = find_needed (strtab + ent->vn_file, map);

/* If NEEDED is NULL this means a dependency was not found
 and no stub entry was created.  This should never happen.  */
if (needed == NULL)
{
  _dl_signal_error (errval, NULL, NULL, strtab + ent->vn_file);
  printf("error while loading shared libraries: %s", strtab + ent->vn_file);
  exit (1);
}



This code loops through the needed versions of the link_map (Elf64_Verneed
*ent) and calls find_needed for each entry. find_needed calls
_dl_name_match_p and compares the library name. I have captured the
individual calls in debug statements and this is the result:

_dl_name_match_p name:libc.so.6
_dl_name_match_p name:libc.so.6
_dl_name_match_p name:libc.so.6
_dl_check_map_versions needed:1, file:libc.so.6

_dl_name_match_p name:libgcc_s.so.1
_dl_name_match_p name:libgcc_s.so.1
_dl_check_map_versions needed:1, file:libgcc_s.so.1

_dl_name_match_p name:libc.so.6
_dl_name_match_p name:libc.so.6
_dl_check_map_versions needed:1, file:libc.so.6

_dl_name_match_p name:ld-linux.so.3
_dl_name_match_p name:ld-linux.so.3
_dl_check_map_versions needed:NULL, file:ld-linux.so.3



As I can see the dependencies libc.so.6 and libgcc_s.so.1 are met. Only
ld-linux.so.3 is not. libc.so.6, libgcc_s.so.1 and ld-linux.so.3 are all in
the same location, so I don't understand what this error means.

arm-2012.03/arm-none-linux-gnueabi/libc/lib:
-rwxr-xr-x 1 developer users  177212 10. Jun 18:43 ld-2.15.so
lrwxrwxrwx 1 developer users      10 10. Jun 18:43 ld-linux.so.3 ->
ld-2.15.so
lrwxrwxrwx 1 developer users      12 10. Jun 18:43 libc.so.6 -> libc-2.15.so
-rw-r--r-- 1 developer users     135 10. Jun 18:43 libgcc_s.so
-rw-r--r-- 1 developer users 3190583 10. Jun 18:43 libgcc_s.so.1
...


Any hints? :-)
Thank you.

Cheers
Florian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150616/3149886e/attachment.html>


More information about the yocto mailing list