From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 76708E00942; Tue, 9 Dec 2014 19:01:18 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, TRACKER_ID autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 1.3 TRACKER_ID BODY: Incorporates a tracking ID number * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 38399E00928 for ; Tue, 9 Dec 2014 19:01:05 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id sBA313Pp020116 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 9 Dec 2014 19:01:03 -0800 (PST) Received: from Marks-MacBook-Pro.local (172.25.36.230) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.174.1; Tue, 9 Dec 2014 19:01:03 -0800 Message-ID: <5487B76E.7010708@windriver.com> Date: Tue, 9 Dec 2014 21:01:02 -0600 From: Mark Hatle Organization: Wind River Systems User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Qiang Yu References: <54871A7E.1050806@windriver.com> In-Reply-To: Cc: "yocto@yoctoproject.org" Subject: Re: prelink & mklibs problem X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 03:01:18 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit On 12/9/14, 8:41 PM, Qiang Yu wrote: > I have submitted a bug here: > https://bugzilla.yoctoproject.org/show_bug.cgi?id=7056 (Responded in the bug as well...) I have a test version of the cross prelink with the ARM HF patch available, as commit: 2cde4ff118b5244f5577d9bc585c1ee521740af0 To enable it, use the following in your local.conf: SRCREV_pn-prelink = "2cde4ff118b5244f5577d9bc585c1ee521740af0" If this works for you, I'll finish the patch and submit the changes. --Mark > Regards, > Qiang > > On Tue, Dec 9, 2014 at 11:51 PM, Mark Hatle > wrote: > > On 12/8/14, 3:55 AM, Jegan Chandru wrote: > > I recommend you to file a bug here https://bugzilla.yoctoproject.__org/ > if not > done already. You may get a proper answer on armhf support there. From > what I > see, (someone please correct me if I am wrong), there is no prelink > dynamic link > armhf patch. You can also create and submit the patch for review. AFAIK, > you are > gonna need to something like below, > > .dynamic_linker = "/lib/ld-linux-armhf.so.3" in arch-arm.c. > > This is not tested though. Please do a test yourselves. > > > See: http://marc.info/?l=fedora-__arm&m=135417053128837&w=2 > > > Nobody had requested prelink support for armhf up to this point. > > Open an enhancement / bug and assign it to me. I'll do what I can to > integrate the patch officially. > > I had been waiting for the prelink upstream to merge this, but they never > bothered to, so I'll have to make it a Yocto Project 'cross-prelink' > specific path. > > --Mark > > -JC > > On Mon, Dec 8, 2014 at 1:52 PM, Qiang Yu > >> wrote: > > Thanks for your reply. I almost give up. > > You mean that current yocto build doesn't support hard float ABI > prelink, > and the prelink source code needs to > be modified to use ld-linux-armhf.so.3? > > So this problem affect all armhf build of yocto, in other words prelink > doesn't work for yocto armhf at all now? > > Regards, > Qiang > > On Mon, Dec 8, 2014 at 3:28 PM, Jegan Chandru > >> wrote: > > Hi, > > I think it has to do with the ld-linux-armhf.so.3. May be you > should > tell prelink that you have hard float ARM ABI to prelink for, than > ld-linux.so.3 . It means you need to add ld-linux-armhf.so.3 as a > dynamic linker. > You should patch the prelink source to get this done. > > HTH. > > -JC > > > > On Fri, Dec 5, 2014 at 7:41 AM, Qiang Yu > >> wrote: > > Hi all, > > I'm building a image with local.conf: > USER_CLASSES ?= "buildstats image-mklibs image-prelink" > > but I think prelink does nothing on my image, because the > MD5SUM is > the same before and after > the prelink stage. The mklibs stage is also strange not print > anything. How to make prelink and > mklibs really work? > > 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 > > Regards, > Qiang > > > -- > _________________________________________________ > yocto mailing list > yocto@yoctoproject.org > __> > https://lists.yoctoproject.__org/listinfo/yocto > > > > > > -- > JCP > > > > > > -- > JCP > > > > -- > _________________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.__org/listinfo/yocto > > >