aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cgo/security.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgo/security.go b/cgo/security.go
index 2fea40c8a..28bd23ef6 100644
--- a/cgo/security.go
+++ b/cgo/security.go
@@ -142,6 +142,7 @@ var validLinkerFlags = []*regexp.Regexp{
re(`-L([^@\-].*)`),
re(`-O`),
re(`-O([^@\-].*)`),
+ re(`--export=(.+)`), // for wasm-ld
re(`-f(no-)?(pic|PIC|pie|PIE)`),
re(`-f(no-)?openmp(-simd)?`),
re(`-fsanitize=([^@\-].*)`),