[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Detect 32-bit userland on sparc64 linux kernel as sparc-unkn
From: |
James Y Knight |
Subject: |
Re: [PATCH] Detect 32-bit userland on sparc64 linux kernel as sparc-unknown-linux. |
Date: |
Tue, 2 Jun 2015 19:36:48 -0400 |
On Jun 2, 2015, at 7:03 PM, Jan Engelhardt <address@hidden> wrote:
> If you run a x86_64 or sparc64 kernel, it means your CPU is capable
> of running instructions like MOV(QWORD) or LDX, respectively. These
> instructions can be issued **no matter whether your C compiler is in
> ILP32 or LP64 mode**.
Ok, I was thrown off by the existence of logic just like that in other places
in the file -- and I thought it was intended that it return the target ABI not
the hardware capabilities. But, it sounds like those other places with similar
logic are bogus, and config.guess really just supposed to report the capability
of the hardware not the ABI. Sorry for the noise!
(It seems a bit odd that the architecture name is inconsistent between solaris
and linux, though -- on solaris you get e.g. "sparc-sun-solaris2.11", and linux
you get sparc64-unknown-linux-gnu. Both environments are running 64bit kernels
and default to 32bit userland. Oh well.)
James