]> Cypherpunks repositories - gostls13.git/commit
cmd/link: update -T flag's documentation
authorCherry Mui <cherryyz@google.com>
Wed, 1 Mar 2023 00:10:44 +0000 (19:10 -0500)
committerCherry Mui <cherryyz@google.com>
Wed, 1 Mar 2023 18:12:05 +0000 (18:12 +0000)
commitf1ea0249ed2a1e91095ed20cca31378027847c7d
tree17fc770f2188f59d64c02d3b8751bbf0d437decc
parentcf3d0655f8ca2de555549f6e8a91bf8654da7e6c
cmd/link: update -T flag's documentation

The -T flag actually means the start address of text symbols, not
the text sections, which may differ by the header size. It has
been behaving like this since at least 2009. Make it clear in the
documentation.

Also remove the -D flag from the doc. The flag doesn't actually
exist in the implementation.

Fixes #58727.

Change-Id: Ic5b7e93adca3f1ff9f0de33dbb6089f46cdf4738
Reviewed-on: https://go-review.googlesource.com/c/go/+/472356
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/doc.go
src/cmd/link/internal/ld/main.go