From 0e48c674f5f8e906c03d1ea0055eb74959d149cc Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Thu, 3 Sep 2020 08:27:34 +0930 Subject: [PATCH] cmd/go: add -Wl,-Bsymbolic-functions to cgo flags whitelist Closes #41199 Change-Id: Iab69358e8c39e6d2b2797c7ce750df63aa7e96b0 Reviewed-on: https://go-review.googlesource.com/c/go/+/252698 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/go/internal/work/security.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/go/internal/work/security.go b/src/cmd/go/internal/work/security.go index 3ee68ac1b4..d2a2697f0f 100644 --- a/src/cmd/go/internal/work/security.go +++ b/src/cmd/go/internal/work/security.go @@ -177,6 +177,7 @@ var validLinkerFlags = []*lazyregexp.Regexp{ re(`-Wl,-Bdynamic`), re(`-Wl,-berok`), re(`-Wl,-Bstatic`), + re(`-Wl,-Bsymbolic-functions`), re(`-WL,-O([^@,\-][^,]*)?`), re(`-Wl,-d[ny]`), re(`-Wl,--disable-new-dtags`),