From: Segher Boessenkool <segher@kernel.crashing.org>
To: John Scott <jscott@posteo.net>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Target triplet: sh-elf vs sh1-elf vs sh2-elf
Date: Wed, 20 Jan 2021 18:42:20 -0600 [thread overview]
Message-ID: <20210121004220.GH30983@gate.crashing.org> (raw)
In-Reply-To: <20947043.EfDdHjke4D@t450>
On Wed, Jan 20, 2021 at 03:49:28PM -0500, John Scott via Gcc-help wrote:
> Hi,
>
> I'm interested in building the cross toolchain needed to build carl9170
> wireless firmware. The docs say that it needs an SH-2 toolchain, but the build
> scripts only use the 'sh-elf' tuple. (I've asked about this on the linux-
> wireless list but haven't garnered a response.)
>
> It seems like config.sub is equally happy to accept sh-elf and sh[1234]-elf, so
> I wonder if the first is an alias and to what, or how Binutils+GCC interprets
> the difference.
sh2-elf defaults to -m2, while sh-elf defaults to -m1. This is only a
default, with either toolchain you can generate code for both targets.
(It could be that some other things or defaulted differently by the
target files, or even disabled,or hardcoded -- I only looked in
config.gcc).
Segher
prev parent reply other threads:[~2021-01-21 0:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 20:49 John Scott
2021-01-21 0:42 ` Segher Boessenkool [this message]
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=20210121004220.GH30983@gate.crashing.org \
--to=segher@kernel.crashing.org \
--cc=gcc-help@gcc.gnu.org \
--cc=jscott@posteo.net \
/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).