public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Target triplet: sh-elf vs sh1-elf vs sh2-elf
@ 2021-01-20 20:49 John Scott
  2021-01-21  0:42 ` Segher Boessenkool
  0 siblings, 1 reply; 2+ messages in thread
From: John Scott @ 2021-01-20 20:49 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

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.

Thanks,
John

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Target triplet: sh-elf vs sh1-elf vs sh2-elf
  2021-01-20 20:49 Target triplet: sh-elf vs sh1-elf vs sh2-elf John Scott
@ 2021-01-21  0:42 ` Segher Boessenkool
  0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2021-01-21  0:42 UTC (permalink / raw)
  To: John Scott; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-21  0:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 20:49 Target triplet: sh-elf vs sh1-elf vs sh2-elf John Scott
2021-01-21  0:42 ` Segher Boessenkool

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).