]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/ld: unconditionally use posix_fallocate on FreeBSD
authorTobias Klauser <tklauser@distanz.ch>
Thu, 28 Aug 2025 12:37:04 +0000 (14:37 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 5 Sep 2025 13:41:24 +0000 (06:41 -0700)
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>
src/cmd/link/internal/ld/fallocate_test.go
src/cmd/link/internal/ld/outbuf_bsd.go
src/cmd/link/internal/ld/outbuf_nofallocate.go

index 163ffc26e8406a060f4b361709a232d77677caf1..3c6b7ef752edd3d6a8a39f5f7fc3198f2ea07273 100644 (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
 
index 5dce83fefd2d7c1e6c9c1ead5e801663788fe2bd..a1d61aa045a8cb097fae30cdbbc881673e42d2b8 100644 (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
 
index 9169379e23897bd244ca491eef4048c63b8dcb6c..0207b3988a4f5b0aa7f7ee85bb2852b5c5c24cbc 100644 (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