From: Joel Sing Date: Fri, 8 Aug 2025 17:24:14 +0000 (+1000) Subject: cmd/link/internal/ld: remove OpenBSD buildid workaround X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3bea95b2778312dd733c0f13fe9ec20bd2bf2d13;p=gostls13.git cmd/link/internal/ld: remove OpenBSD buildid workaround 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui --- diff --git a/src/cmd/link/internal/ld/main.go b/src/cmd/link/internal/ld/main.go index 6a684890be..cc6b2fd37a 100644 --- a/src/cmd/link/internal/ld/main.go +++ b/src/cmd/link/internal/ld/main.go @@ -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" }