cmd/go: add -Wl,-wrap,symbol to linker flag whitelist

This is needed for cgo support for libpsx.

Fixes: #39361
Change-Id: I500f5614ea4b82b085322af1f1ffeb1f55270a05
Reviewed-on: https://go-review.googlesource.com/c/go/+/236139
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Andrew G. Morgan 2020-06-02 13:13:54 -07:00 committed by Ian Lance Taylor
parent ba6ccf3b04
commit 9bbe899576
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ var validLinkerFlags = []*lazyregexp.Regexp{
re(`-Wl,-undefined[=,]([^,@\-][^,]+)`),
re(`-Wl,-?-unresolved-symbols=[^,]+`),
re(`-Wl,--(no-)?warn-([^,]+)`),
re(`-Wl,-?-wrap[=,][^,@\-][^,]*`),
re(`-Wl,-z,(no)?execstack`),
re(`-Wl,-z,relro`),