From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4209 invoked by alias); 9 Apr 2007 17:46:16 -0000 Received: (qmail 4198 invoked by uid 22791); 9 Apr 2007 17:46:14 -0000 X-Spam-Check-By: sourceware.org Received: from mx3-6.spamtrap.magma.ca (HELO mx3-6.spamtrap.magma.ca) (209.217.78.173) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Apr 2007 18:46:03 +0100 Received: from mail3.magma.ca (mail3.internal.magma.ca [10.0.10.13]) by mx3-6.spamtrap.magma.ca (8.13.0/8.13.1) with ESMTP id l39HjwNQ014108 for ; Mon, 9 Apr 2007 13:45:58 -0400 Received: from Alps ([64.26.151.50]) by mail3.magma.ca (Magma's Mail Server) with ESMTP id l39Hjuvb019270 for ; Mon, 9 Apr 2007 13:45:57 -0400 From: "Sanjay Chadha" To: Subject: Re: [PATCH] enabling gprof for cross builds Date: Mon, 09 Apr 2007 17:46:00 -0000 Message-ID: <000301c77ace$ee740120$1f28a8c0@Alps> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.2616 X-magma-MailScanner-Information: Magma Mailscanner Service X-magma-MailScanner: Clean Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00074.txt.bz2 I have a question regarding cross compiling gprof. There was a patch which removed from gprof from native_only list. -native_only=3D"autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" +native_only=3D"autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" =20 I am not sure if above change alone will make gprof cross compile (and link). gprof uses libbfd.a which is compiled as a host_libs hence there would be a mismatch between gprof and libbfd.a. To circumvent this I gave the following command (so both host and target are the target mips platform) =20 [schadha@devjava1-fc4 binutils-2.15.91.0.2]$ ./configure --target=3Dmipsel-linux --host=3D=3Dmipsel-linux [schadha@devjava1-fc4 binutils-2.15.91.0.2]$ make However the compiled gprof was compiled for the host (i386) machine. Any ideas of what other changes may be required to cross compile gprof for the mips machine. Regards, =A0=A0=A0 Sanjay =A0 S5 Systems - providing custom embedded engineering services=A0 =A0 Direct:=A0 (613) 226-4764=A0 Mobile: (613) 355-9298