<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7056</bug_id>
          
          <creation_ts>2014-12-10 02:38:20 +0000</creation_ts>
          <short_desc>prelink does not support armhf</short_desc>
          <delta_ts>2015-08-31 14:51:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Cross-prelink</product>
          <component>cross-prelink</component>
          <version>1.7</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Qiang Yu">yuq825</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>yp.cp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47468</commentid>
    <comment_count>0</comment_count>
    <who name="Qiang Yu">yuq825</who>
    <bug_when>2014-12-10 02:38:20 +0000</bug_when>
    <thetext>I&apos;m building a image with local.conf:
USER_CLASSES ?= &quot;buildstats image-mklibs image-prelink&quot;

but I think prelink does nothing on my image, because the MD5SUM is the same before and after the prelink stage.

Discussion can be found at:
http://www.mail-archive.com/yocto@yoctoproject.org/msg21950.html

Here is the log of log.do_rootfs:

NOTE: ###### Generate images #######
NOTE: Executing mklibs_optimize_image ...
DEBUG: Executing shell function mklibs_optimize_image
DEBUG: Shell function mklibs_optimize_image finished
NOTE: Executing prelink_image ...
DEBUG: Executing shell function prelink_image
Size before prelinking 49304.
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/fstab-decode: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/bootlogd: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/killall5: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/init.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/halt.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/shutdown.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /sbin/runlevel.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/sbin/dropbearmulti: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /bin/mountpoint.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /bin/busybox.suid: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /bin/busybox.nosuid: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/bin/utmpdump.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/bin/mesg.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/bin/last.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/bin/opkg-cl: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/bin/bmw: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
/opt/yocto/rootfs/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/bin/wall.sysvinit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker
Size after prelinking 49304.
DEBUG: Shell function prelink_image finished</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47469</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-12-10 02:59:32 +0000</bug_when>
    <thetext>A test version of the prelink is available in the git repository.

Can you try your test with it, to enable it put the following in your local.conf:

SRCREV_pn-prelink = &quot;2cde4ff118b5244f5577d9bc585c1ee521740af0&quot;

Run the build again and see if the issue goes away (and importantly, that the results boot and execute properly.)

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47484</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-12-10 23:11:00 +0000</bug_when>
    <thetext>New version:

SRCREV_pn-prelink = &quot;81bab23a4661fdaaa859325d6d3603811ecf1849&quot;

Fixes non-hf ARM, adds the ld-linux-armhf.so.3 to the ldso list in the prelink-rtld.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48940</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-02-19 16:15:57 +0000</bug_when>
    <thetext>Upstream cross-prelink project is working.  We just need to get the update into oe-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53572</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-08-31 14:51:35 +0000</bug_when>
    <thetext>Commit checked in to enable the latest code:

c9e4867a605a8007f569ed6ec4cf445111a533c1

(Note there are some reports of failures with the latest glibc ld-so.  I&apos;d like to track those in a separate defect as I believe it&apos;s unrelated to this issue.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>