]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: load host archive libc_nonshared.a for -fstack-protector
authorThan McIntosh <thanm@google.com>
Mon, 12 Dec 2022 16:04:05 +0000 (11:04 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 31 Jan 2023 15:09:24 +0000 (15:09 +0000)
commit066b780502c8c87c03f8a5e0bbc16c1c87221cf1
treea9ee127b82982cdee487fdfd499defe6c56e66ff
parentda0c375c571037ec5ea6f8ef2be8f07593b40eb6
cmd/link: load host archive libc_nonshared.a for -fstack-protector

For internal linking, at the point where we finish reading libgcc.a,
if the symbol "__stack_chk_local" is still undefined, then read
in the host archive libc_nonshared.a as well.

Updates #57261.

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