From: Dave.Martin@arm.com (Dave Martin)
To: linux-arm-kernel@lists.infradead.org
Subject: new binutils needed for arm in 3.12-rc1
Date: Mon, 30 Sep 2013 12:27:09 +0100 [thread overview]
Message-ID: <20130930112704.GA3209@localhost.localdomain> (raw)
In-Reply-To: <52446841.2030301@codethink.co.uk>
On Thu, Sep 26, 2013 at 06:00:49PM +0100, Ben Dooks wrote:
> On 24/09/13 03:13, Rob Landley wrote:
> >On 09/23/2013 06:59:17 PM, Pavel Machek wrote:
> >>During 3.12-rc, Will Deacon introduced code into arch/arm that
> >>requires binutils 2.22.
> >
> >Um, my toolchain is using the last gplv2 snapshot of binutils out of
> >git, which is just past 2.17 and can build armv7 (but not armv8).
> >
> >Binutils 2.12->2.22 is quite the jump. (11 years.) I'd except some
> >thought to have gone into that? Possibly a mention of it?
> >
> >>diff --git a/Documentation/Changes b/Documentation/Changes
> >>index b175808..0f8deaf 100644
> >>--- a/Documentation/Changes
> >>+++ b/Documentation/Changes
> >>@@ -23,7 +23,7 @@ you probably needn't concern yourself with
> >>isdn4k-utils.
> >>
> >>o Gnu C 3.2 # gcc --version
> >>o Gnu make 3.80 # make --version
> >>-o binutils 2.12 # ld -v
> >>+o binutils 2.22 # ld -v
>
> Out of interest, can I now change my fixes for v3.12 big-endian
> series to use .instr instead of .word?
There seems to be a consensus in this thread that demanding newer
binutils for this feature is reasonable, at least for v7, since
older versions may not completely implement v7 anyway.
But I don't see a conclusion on whether it is reasonable to make that
demand for configurations (< v7) where these new features are irrelevant.
I also don't see a clear justification about what version should be
demanded (I only see 2.22 suggested, yet DSB NSH, ISH and friends
actually require only 2.21, if I'm reading the source right).
If such a decision is made globally for all configurations, and if the
chosen version is >= 2.20, then I have no problem with switching to
.inst. In that case it would make sense to port opcodes.h to use .inst,
or otherwise to port all users of the __inst_*() macros in the kernel to
use .inst directly.
Using .inst conditionally, based on a build-time check would also be
possible -- that's a nice-to-have, which I hadn't attempted for now.
That would at least make those instructions disassemble correctly.
Note that some of the opcodes.h macros do more than .inst does, even
with newer binutils.
Part of the point of the way opcodes.h was written was to encourage
people to think about ARM versus thumb, instead of spraying .long
all over the kernel and watching it break. .inst may encourage the
same fail, IMHO, unless wrapped by something like the opcodes.h interface
that helps the coder to be explicit about their intentions.
Cheers
---Dave
next prev parent reply other threads:[~2013-09-30 11:27 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-19 9:30 3.12-rc1: no longer compiles for Nokia n900 (omap based) Pavel Machek
2013-09-19 9:36 ` Will Deacon
2013-09-19 9:57 ` Pavel Machek
[not found] ` <20130923235917.GA30967@amd.pavel.ucw.cz>
2013-09-24 2:13 ` new binutils needed for arm in 3.12-rc1 Rob Landley
2013-09-24 12:11 ` Måns Rullgård
2013-09-24 21:23 ` Rob Landley
2013-09-24 21:48 ` Russell King - ARM Linux
2013-09-25 1:13 ` Rob Landley
2013-09-25 2:07 ` Nicolas Pitre
2013-09-25 15:23 ` Rob Landley
2013-09-25 15:52 ` Måns Rullgård
2013-09-26 0:10 ` Rob Landley
2013-09-26 22:24 ` Måns Rullgård
2013-09-25 16:13 ` Nicolas Pitre
2013-09-26 22:48 ` Rob Landley
2013-09-27 19:41 ` Pavel Machek
2013-09-28 8:43 ` Pavel Machek
2013-09-25 20:44 ` Russell King - ARM Linux
2013-09-25 20:49 ` Måns Rullgård
2013-09-26 22:50 ` Rob Landley
2013-09-26 7:18 ` Geert Uytterhoeven
2013-09-28 9:03 ` richard -rw- weinberger
2013-09-26 17:00 ` Ben Dooks
2013-09-30 11:27 ` Dave Martin [this message]
2013-09-24 2:20 ` Rob Landley
2013-09-19 9:44 ` 3.12-rc1: no longer compiles for Nokia n900 (omap based), display no longer works Pavel Machek
2013-09-19 18:47 ` Aaro Koskinen
2013-09-26 0:23 ` Pavel Machek
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=20130930112704.GA3209@localhost.localdomain \
--to=dave.martin@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 NNTP newsgroup(s).