| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 13dea91c1dfbd649b67a92e1e98332b12025b16d..3cf72220237662772be19973c54a9c9de54012fd 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -1246,6 +1246,10 @@
|
| if (!using_sanitizer && target_cpu != "arm64") {
|
| cflags += [ "-fomit-frame-pointer" ]
|
| }
|
| +
|
| + # Don't use gc-sections since it can cause links to succeed when they
|
| + # actually shouldn't. http://crbug.com/159847
|
| + ldflags = common_optimize_on_ldflags - [ "-Wl,--gc-sections" ]
|
| } else {
|
| cflags = [ "-O0" ]
|
| ldflags = []
|
|
|