]> Cypherpunks repositories - gostls13.git/commit
cmd/link: reject invalid -R flag
authorCherry Mui <cherryyz@google.com>
Fri, 15 Sep 2023 16:02:01 +0000 (12:02 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 15 Sep 2023 17:22:06 +0000 (17:22 +0000)
commit11b08a75cd6b93473d0ab6e4b6a94247ee341a01
tree0d5ecb9121f5386c6ddd2423d0a7b0b94a73bedf
parent5914f6a482ce9e178cdc199ec3ec1719b6049f60
cmd/link: reject invalid -R flag

Reject -R value that is not a power of 2, or less than 4K.

Fixes #62660.

Change-Id: I3fa33c23c25311a93c0accc9acbd1e465789b8c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/528715
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/ld/main.go