]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add -fno-stack-protector to CFLAGS (again)
authorThan McIntosh <thanm@google.com>
Thu, 9 Feb 2023 16:31:57 +0000 (11:31 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 10 Feb 2023 14:29:46 +0000 (14:29 +0000)
commit48f4728211c1c4299728b6b3a04a6ddf997d9ec6
tree4173aafd48ab3637537fb71a0f59af150c77b32a
parent7d57a9ce82cc6841307bc1c3383808b36a884bc9
cmd/cgo: add -fno-stack-protector to CFLAGS (again)

Add -fno-stack-protector back to the default set of CFLAGS for cgo, so
as to avoid problems with internal linking locating the library
containing the "__stack_chk_fail_local" support function that some
compilers emit (the specific archive can vary based on GOOS).

Updates #52919.
Updates #54313.
Updates #57261.
Updates #58385.

Change-Id: I4591bfb15501f04b7afe1fcd50c4fb93c86db63d
Reviewed-on: https://go-review.googlesource.com/c/go/+/466935
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/cgo/cgo.go