From: Mark Shinwell <shinwell@codesourcery.com>
To: binutils@sourceware.org
Subject: [PATCH] enabling gprof for cross builds
Date: Mon, 08 May 2006 23:48:00 -0000 [thread overview]
Message-ID: <445F9A15.7000103@codesourcery.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
Hi,
The attached patchette enables building of gprof for cross builds.
I believe gprof builds and executes correctly in this scenario with the
single caveat that if you wish to examine gmon.out files produced on a
target whose pointer size is 64 bits then you must compile gprof with a
compiler that supports a 64-bit integer type. As far as I can tell,
endianness issues are handled automatically by virtue of the I/O
routines going via bfd.
Does that caveat mean that a configure test (involving the build
compiler's capability and the pointer size of the target) should be used
to determine whether to build gprof? I hear that this might be overkill.
Tested with cross builds from i686 to SPARC and ARM architectures.
Comments appreciated: I've recently started at CodeSourcery and so am
somewhat new to all of this :-)
Mark
[-- Attachment #2: binutils-gprof.patch --]
[-- Type: text/plain, Size: 938 bytes --]
Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.305
diff -U3 -p -r1.305 configure.in
--- configure.in 2 May 2006 00:16:50 -0000 1.305
+++ configure.in 8 May 2006 18:48:54 -0000
@@ -227,7 +227,7 @@ esac
# Some tools are only suitable for building in a "native" situation.
# Remove these if host!=target.
-native_only="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="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"
# Similarly, some are only suitable for cross toolchains.
# Remove these if host=target.
next reply other threads:[~2006-05-08 19:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-08 23:48 Mark Shinwell [this message]
2006-05-09 1:38 ` Daniel Jacobowitz
2006-05-09 2:05 ` Ben Elliston
2006-05-09 20:33 ` Mark Shinwell
2006-05-24 12:31 ` Mark Shinwell
2006-05-24 14:28 ` Daniel Jacobowitz
2006-05-24 17:09 ` Mark Shinwell
2007-04-09 17:46 Sanjay Chadha
2007-04-12 4:08 ` Ben Elliston
2007-04-12 15:13 ` Danny Backx
2007-04-13 1:09 ` John Tytgat
2007-04-19 21:54 ` Danny Backx
2007-04-20 14:28 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=445F9A15.7000103@codesourcery.com \
--to=shinwell@codesourcery.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).