]> Cypherpunks repositories - gostls13.git/commit
cmd/link: remove misleading comment
authorIan Lance Taylor <iant@golang.org>
Tue, 28 Oct 2025 20:35:53 +0000 (13:35 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 5 Nov 2025 00:32:25 +0000 (16:32 -0800)
commitf5f14262d0c0aae7d104ce22d05862276d16a002
tree7c98e7586b337fcf99f5ccf5e09239ec22a52963
parent61de3a9dae6d9e7b0b2d31ec2650ee88237d8bfb
cmd/link: remove misleading comment

The comment suggests that the text section is briefly writable.
That is not the case. As the earlier part of the comment explains,
part of the text section is mapped twice, once r-x and once rw-.
It is never the case that there is writable executable memory.

Change-Id: I56841e19a8a08f2515f29752536a5c8f180ac8c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/715622
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/ld/data.go