Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index dbe2e5744993faa616fb6f8529a5f16e8d07d67b..ff20eb69a89fab68a2dab27606b40643f13a57ba 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -377,6 +377,13 @@ config("compiler") { |
} else { |
cflags += [ "-funwind-tables" ] |
} |
+ |
+ if (is_clang && !is_nacl && !is_debug) { |
+ # Non-unique section names appears to make linker dead stripping |
+ # less effective. See http://crbug.com/483026#c20 |
+ # TODO(hans): Remove this if resolved upstream. |
+ cflags += [ "-funique-section-names" ] |
+ } |
} |
# Linux/Android common flags setup. |