From: Ian Lance Taylor Date: Sun, 1 Jul 2018 21:18:03 +0000 (-0700) Subject: cmd/go: add -flat_namespace to LDFLAGS whitelist X-Git-Tag: go1.11beta2~230 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=59934e7ebb25c31647154a559cd2480376ee70cd;p=gostls13.git cmd/go: add -flat_namespace to LDFLAGS whitelist Fixes #26173 Change-Id: I032551f63b359c8cbb7296931e1957d2bff8f328 Reviewed-on: https://go-review.googlesource.com/121819 Run-TryBot: Ian Lance Taylor Reviewed-by: Daniel Martí --- diff --git a/src/cmd/go/internal/work/security.go b/src/cmd/go/internal/work/security.go index cd39a8f791..d5d126123a 100644 --- a/src/cmd/go/internal/work/security.go +++ b/src/cmd/go/internal/work/security.go @@ -136,6 +136,7 @@ var validLinkerFlags = []*regexp.Regexp{ re(`-f(no-)?(pic|PIC|pie|PIE)`), re(`-f(no-)?openmp(-simd)?`), re(`-fsanitize=([^@\-].*)`), + re(`-flat_namespace`), re(`-g([^@\-].*)?`), re(`-headerpad_max_install_names`), re(`-m(abi|arch|cpu|fpu|tune)=([^@\-].*)`),