]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add -flat_namespace to LDFLAGS whitelist
authorIan Lance Taylor <iant@golang.org>
Sun, 1 Jul 2018 21:18:03 +0000 (14:18 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 2 Jul 2018 17:36:16 +0000 (17:36 +0000)
Fixes #26173

Change-Id: I032551f63b359c8cbb7296931e1957d2bff8f328
Reviewed-on: https://go-review.googlesource.com/121819
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/go/internal/work/security.go

index cd39a8f79181fb468941fd910b34d46733364140..d5d126123a4b0b6839503dadf31e5bf54ff9b281 100644 (file)
@@ -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)=([^@\-].*)`),