]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/ld: remove OpenBSD buildid workaround
authorJoel Sing <joel@sing.id.au>
Fri, 8 Aug 2025 17:24:14 +0000 (03:24 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 13 Aug 2025 14:01:03 +0000 (07:01 -0700)
Now that there are no Go OpenBSD ports that are using non-libc based
system calls, remove the buildid that was generated to permit
binaries using direct syscalls to execute.

Updates #36435

Change-Id: I7bc70b47b2a3781eafef85b974baee9a1d334e21
Reviewed-on: https://go-review.googlesource.com/c/go/+/694355
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/main.go

index 6a684890be0a03806184d1a7b3bc8353b880883c..cc6b2fd37a3d79d552591aded546d738fe8cadb3 100644 (file)
@@ -292,14 +292,6 @@ func Main(arch *sys.Arch, theArch Arch) {
 
        interpreter = *flagInterpreter
 
-       if *flagBuildid == "" && ctxt.Target.IsOpenbsd() {
-               // TODO(jsing): Remove once direct syscalls are no longer in use.
-               // OpenBSD 6.7 onwards will not permit direct syscalls from a
-               // dynamically linked binary unless it identifies the binary
-               // contains a .note.go.buildid ELF note. See issue #36435.
-               *flagBuildid = "go-openbsd"
-       }
-
        if *flagHostBuildid == "" && *flagBuildid != "" {
                *flagHostBuildid = "gobuildid"
        }