aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_freebsd.go
diff options
context:
space:
mode:
authorYuval Pavel Zholkover <paulzhol@gmail.com>2018-05-26 19:25:31 +0300
committerBrad Fitzpatrick <bradfitz@golang.org>2018-05-26 17:11:43 +0000
commit51e19d60329b0c62d5a4eaf4c2c0afaa0cc43744 (patch)
tree4fc2dba45ebb9b328bcf93bbb402e3c6080ddfff /src/runtime/os_freebsd.go
parentcb80c28961a884844020ecc027b44c6b00745702 (diff)
downloadgo-51e19d60329b0c62d5a4eaf4c2c0afaa0cc43744.tar.gz
go-51e19d60329b0c62d5a4eaf4c2c0afaa0cc43744.zip
runtime: use the correct AT_HWCAP auxv constant on freebsd
In golang.org/cl/102355 I mistakenly used 26 instead of 25 as the AT_HWCAP value. 26 is AT_HWCAP2. While experimenting with FreeBSD-11.2-BETA3 (where both values are being supplied in the auxv), the AT_HWCAP2 value read is 0 which triggers the error again: runtime: this CPU has no floating point hardware, so it cannot run this GOARM=7 binary. Recompile using GOARM=5. Updates #24507. Change-Id: Ide04b7365d8f10e4650edf4e188dd58bdf42cc26 Reviewed-on: https://go-review.googlesource.com/114822 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/os_freebsd.go')
-rw-r--r--src/runtime/os_freebsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os_freebsd.go b/src/runtime/os_freebsd.go
index d0d7b69ace..b3fc6a34ac 100644
--- a/src/runtime/os_freebsd.go
+++ b/src/runtime/os_freebsd.go
@@ -382,7 +382,7 @@ const (
_AT_NULL = 0 // Terminates the vector
_AT_PAGESZ = 6 // Page size in bytes
_AT_TIMEKEEP = 22 // Pointer to timehands.
- _AT_HWCAP = 26 // CPU feature flags
+ _AT_HWCAP = 25 // CPU feature flags
)
func sysauxv(auxv []uintptr) {