[OE-core] [PATCH] image-prelink: Disable for musl images

Mark Hatle mark.hatle at windriver.com
Fri Aug 11 15:05:51 UTC 2017


On 8/11/17 2:16 AM, Richard Purdie wrote:
> For some reason prelink was refusing to prelink musl images but now sometimes
> does modify the binaries. Since musl has no support for this, such images
> end up broken and unable to boot.
> 
> To avoid this, be explicit and only apply prelinking for libc-glibc.
> 
> [YOCTO #11913]
> 
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

Ack.  Agreed, best solution.  (If anyone wants to update musl to support the
prelinker, I'd love to see it.. but I don't expect that to happen.)

--Mark

> ---
>  meta/classes/image-prelink.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/image-prelink.bbclass b/meta/classes/image-prelink.bbclass
> index 4157df0..6fcd699 100644
> --- a/meta/classes/image-prelink.bbclass
> +++ b/meta/classes/image-prelink.bbclass
> @@ -1,6 +1,6 @@
>  do_rootfs[depends] += "prelink-native:do_populate_sysroot"
>  
> -IMAGE_PREPROCESS_COMMAND += "prelink_setup; prelink_image; "
> +IMAGE_PREPROCESS_COMMAND_append_libc-glibc = " prelink_setup; prelink_image; "
>  
>  python prelink_setup () {
>      oe.utils.write_ld_so_conf(d)
> 




More information about the Openembedded-core mailing list