cmd/link/internal/ld: unconditionally use posix_fallocate on FreeBSD

Now that Go 1.24 is the minimum bootstrap toolchain we can drop the
version dependent use of posix_fallocate on FreeBSD.

For #69315

Change-Id: Ie0c7ca67e3c21138d690e1e11a12172d52619493
Reviewed-on: https://go-review.googlesource.com/c/go/+/699735
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Tobias Klauser 2025-08-28 14:37:04 +02:00 committed by Gopher Robot
parent 9d0829963c
commit d52a56cce1
3 changed files with 3 additions and 3 deletions

View file

@ -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 darwin || (freebsd && go1.21) || linux || (netbsd && go1.25)
//go:build darwin || freebsd || linux || (netbsd && go1.25)
package ld

View file

@ -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 (freebsd && go1.21) || (netbsd && go1.25)
//go:build freebsd || (netbsd && go1.25)
package ld

View file

@ -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 !darwin && !(freebsd && go1.21) && !linux && !(netbsd && go1.25)
//go:build !darwin && !freebsd && !linux && !(netbsd && go1.25)
package ld