mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 00:32:14 +02:00
linuxloader/image-prelink/image-mklibs: Fix non-standard path prelinking
Prelinking on x86-64 wasn't working out the box as it uses /lib and not /lib64 for libs. Prelink was refusing to link as the dynamic loader didn't match its idea of the right path. Passing in the --dyanmic-linker option avoids this. We can share code from image-mklibs so abstract that into a new class, linuxloader.bbclass. This does break prelinking of multilib images, I've opened a bug so we can loop back and fix that problem, the code would need to iterate the dynamic loaders (and setup ld.so.conf files for it). (From OE-Core rev: 7c3f2f61536cc8e0322087558cdcfe29ee2fac6d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
24
meta/classes/linuxloader.bbclass
Normal file
24
meta/classes/linuxloader.bbclass
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
linuxloader () {
|
||||
case ${TARGET_ARCH} in
|
||||
powerpc | mips | mipsel | microblaze )
|
||||
dynamic_loader="${base_libdir}/ld.so.1"
|
||||
;;
|
||||
powerpc64)
|
||||
dynamic_loader="${base_libdir}/ld64.so.1"
|
||||
;;
|
||||
x86_64)
|
||||
dynamic_loader="${base_libdir}/ld-linux-x86-64.so.2"
|
||||
;;
|
||||
i*86 )
|
||||
dynamic_loader="${base_libdir}/ld-linux.so.2"
|
||||
;;
|
||||
arm )
|
||||
dynamic_loader="${base_libdir}/ld-linux.so.3"
|
||||
;;
|
||||
* )
|
||||
dynamic_loader="/unknown_dynamic_linker"
|
||||
;;
|
||||
esac
|
||||
echo $dynamic_loader
|
||||
}
|
||||
Reference in New Issue
Block a user