diff --git a/doc/go1.22.html b/doc/go1.22.html index 64afa898af..d7e8bbd7fb 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -155,12 +155,22 @@ packages that do not have their own test files. Prior to Go 1.22 a
- TODO: https://go.dev/issue/62577: cmd/link, cmd/go: emit split DWARF on darwin +
+ The linker's -s and -w flags are now behave more
+ consistently across all platforms.
+ The -w flag suppresses DWARF debug information generation.
+ The -s flag suppresses symbol table generation.
+ The -s flag also implies the -w flag, which can be
+ negated with -w=0.
+ That is, -s -w=0 will generate a binary with DWARF
+ debug information generation but without the symbol table.
- TODO: complete this section, or delete if not needed +
+ On ELF platforms, the -B linker flag now accepts a special form:
+ with -B gobuildid, the linker will generate a GNU
+ build ID (the ELF NT_GNU_BUILD_ID note) derived from the Go
+ build ID.