diff options
| author | Dmitri Goutnik <dgoutnik@gmail.com> | 2022-06-08 10:52:19 -0500 |
|---|---|---|
| committer | Dmitri Goutnik <dgoutnik@gmail.com> | 2022-10-14 12:48:03 +0000 |
| commit | 5fde02e312796012b5ddacd79cbaafb91d329c72 (patch) | |
| tree | 69ad1d8bbf9106be2b38838bb21b860c3b844995 /src/runtime/cgo | |
| parent | 76e4833b7a3f1ab2d8f30e497d00809b1f6cf1e6 (diff) | |
| download | go-5fde02e312796012b5ddacd79cbaafb91d329c72.tar.xz | |
runtime: add msan support on freebsd/amd64
Adjust build constraints and change the runtime to call the C mmap function
when using cgo.
R=go1.20
For #53298
Change-Id: If9c3306dc16a8645d1bb9be0343e0472d6c4783f
Reviewed-on: https://go-review.googlesource.com/c/go/+/411274
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/cgo')
| -rw-r--r-- | src/runtime/cgo/gcc_mmap.c | 2 | ||||
| -rw-r--r-- | src/runtime/cgo/mmap.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/cgo/gcc_mmap.c b/src/runtime/cgo/gcc_mmap.c index 698a7e3cd2..83d857f0d1 100644 --- a/src/runtime/cgo/gcc_mmap.c +++ b/src/runtime/cgo/gcc_mmap.c @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,amd64 linux,arm64 linux,ppc64le +// +build linux,amd64 linux,arm64 linux,ppc64le freebsd,amd64 #include <errno.h> #include <stdint.h> diff --git a/src/runtime/cgo/mmap.go b/src/runtime/cgo/mmap.go index eae0a9e7cc..2f7e83bcb7 100644 --- a/src/runtime/cgo/mmap.go +++ b/src/runtime/cgo/mmap.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build (linux && amd64) || (linux && arm64) +//go:build (linux && amd64) || (linux && arm64) || (freebsd && amd64) package cgo |
