[yocto] [prelink-cross] error while loading shared libraries: ld-linux.so.3
Florian Boehmak
florian at fnbk.cc
Wed Jun 17 06:28:02 PDT 2015
> The error indicates that it found a library required called 'ld-linux.so.3', but
> could not find that in the "path". (The path generally being the sysroot path
> passed to the rtld.)
>
> What command did you use to run the prelinker? And does your sysroot contain
> the /lib/ld-linux.so.3?
Hey, now I understand it :-) Thank you!
I need to specify the sysroot and explicitly tell prelink which
libraries to prelink:
PATH=/usr/local/sbin prelink --verbose
--root=/home/developer/workspace/eclipse/prelink-cross-example/arm-2012.03/arm-none-linux-gnueabi/libc
--cache-file=/etc/cache/prelink.cache --config-file=/etc/prelink.conf
--ld-library-path="/usr/local/lib;/lib;" -h /usr/local/bin/hello
/lib/libc.so.6 /lib/libgcc_s.so.1 /lib/ld-2.15.so
This will produce the following output:
Assigned virtual address space slots for libraries:
/lib/ld-linux.so.3 41000000-4102a968
/lib/libc.so.6 41030000-41181968
/lib/libgcc_s.so.1 41188000-411af748
/usr/local/lib/libworld.so 411b8000-411c06d0
Prelinking /lib/ld-2.15.so
Prelinking /lib/libc-2.15.so
Prelinking /lib/libgcc_s.so.1
Prelinking /usr/local/lib/libworld.so
Prelinking /usr/local/bin/hello
I put all the code on github, in case somebody has the same issues
(make sure to checkout both branches 'master' and 'shared-library'):
https://github.com/fnbk/prelink-cross-example
Thank you for the great help.
Cheers
Florian
More information about the yocto
mailing list