Skip to content

Commit 9bbe899

Browse files
AndrewGMorganianlancetaylor
authored andcommitted
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent ba6ccf3 commit 9bbe899

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/internal/work/security.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ var validLinkerFlags = []*lazyregexp.Regexp{
202202
re(`-Wl,-undefined[=,]([^,@\-][^,]+)`),
203203
re(`-Wl,-?-unresolved-symbols=[^,]+`),
204204
re(`-Wl,--(no-)?warn-([^,]+)`),
205+
re(`-Wl,-?-wrap[=,][^,@\-][^,]*`),
205206
re(`-Wl,-z,(no)?execstack`),
206207
re(`-Wl,-z,relro`),
207208

0 commit comments

Comments
 (0)