Bug 8227 - prelink does not work on qemuarm
Summary: prelink does not work on qemuarm
Status: RESOLVED FIXED
Alias: None
Product: Cross-prelink
Classification: Yocto Project Subprojects
Component: cross-prelink (show other bugs)
Version: 1.9
Hardware: All arm
: Medium normal
Target Milestone: 2.0.1
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-01 03:08 UTC by LiRongQing
Modified: 2016-02-18 16:04 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LiRongQing 2015-09-01 03:08:47 UTC
1. select machine as qemuarm
2. add the blow to local.conf
   USER_CLASSES ?= "buildstats image-mklibs image-prelink"
3. bitbake core-image-minimal

4. check the prelink is called, but elf files is not prelinked
4.1 no prelink section in elf file
#cd tmp/work/qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/
#arm-poky-linux-gnueabi-objdump -x ./bin/busybox.nosuid |grep prel
#
4.2 
# the size of elffile is same between rootfs and packagelist
 ls -l ./armv5e-poky-linux-gnueabi/glibc/2.22-r0/package/sbin/ldconfig ./qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/sbin/ldconfig
-rwxr-xr-x 2 rli2 users 606152  9月  1 09:51 ./armv5e-poky-linux-gnueabi/glibc/2.22-r0/package/sbin/ldconfig
-rwxr-xr-x 1 rli2 users 606152  9月  1 09:51 ./qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/sbin/ldconfig
Comment 1 Mark Hatle 2015-09-01 03:10:26 UTC
Currently investigating...
Comment 2 Mark Hatle 2015-09-14 15:49:31 UTC
Fixed in cross-prelink.  Patch to oe-core sent.
Comment 3 Mark Hatle 2015-11-12 16:32:09 UTC
Moving back to 2.0.1.  Patch has been sent to OE, just waiting for it to be accepted onto the Jethro branch.