]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/security: add -ftls-model to valid compiler flags
authorMichael Matloob <matloob@golang.org>
Tue, 1 Oct 2024 19:29:36 +0000 (15:29 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 2 Oct 2024 17:00:52 +0000 (17:00 +0000)
commit268eaf9acbbef7555db02bd3f15bdad9a47d13fa
tree0c602bcafccd99ab22ea6ac7a0f9ca19b338e75d
parent8c269479eddb8a620e4f4581a520fdf5a931d648
cmd/go/internal/security: add -ftls-model to valid compiler flags

Allow -ftls-model to be passed in to a system compiler. It does not
allow arbitrary code execution. See
https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#index-ftls-model
for documentation for the -ftls-model flag.

Fixes #69711

Change-Id: I842a96832e6858e62c171401d13baa3391d6d00a
Reviewed-on: https://go-review.googlesource.com/c/go/+/617136
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/go/internal/work/security.go
src/cmd/go/internal/work/security_test.go