From a3e462c4168284529ea1b0d03bc25fb1c12f1da5 Mon Sep 17 00:00:00 2001 From: willboland Date: Sat, 28 Dec 2024 20:26:46 -0500 Subject: [PATCH] cmd/link: document that -s implies -w The Go 1.22 release notes state that -s implies -w; however, the documentation makes no such reference. This updates the documentation to better match the release notes. The Go 1.22 release notes can be found at https://tip.golang.org/doc/go1.22#linker Fixes #71051 --- src/cmd/link/doc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/link/doc.go b/src/cmd/link/doc.go index 9ec2c002f4..7b548f960f 100644 --- a/src/cmd/link/doc.go +++ b/src/cmd/link/doc.go @@ -118,6 +118,7 @@ Flags: Link with race detection libraries. -s Omit the symbol table and debug information. + Implies the -w flag, which can be negated with -w=0. -tmpdir dir Write temporary files to dir. Temporary files are only used in external linking mode.