Skip to content

Commit

Permalink
[release-branch.go1.10] cmd/go: add -Wl,--export-dynamic to linker fl…
Browse files Browse the repository at this point in the history
…ag whitelist

Fixes #27496

Change-Id: I53538c7697729294a9e50ace26a6a7183131e837
Reviewed-on: https://go-review.googlesource.com/134016
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
(cherry picked from commit ceb7745)
Reviewed-on: https://go-review.googlesource.com/134135
  • Loading branch information
ianlancetaylor committed Sep 7, 2018
1 parent 2191fce commit 95b56b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/go/internal/work/security.go
Expand Up @@ -167,6 +167,7 @@ var validLinkerFlags = []*regexp.Regexp{
re(`-Wl,-e[=,][a-zA-Z0-9]*`),
re(`-Wl,--enable-new-dtags`),
re(`-Wl,--end-group`),
re(`-Wl,--(no-)?export-dynamic`),
re(`-Wl,-framework,[^,@\-][^,]+`),
re(`-Wl,-headerpad_max_install_names`),
re(`-Wl,--no-undefined`),
Expand Down

0 comments on commit 95b56b3

Please sign in to comment.