summaryrefslogtreecommitdiffstats
path: root/tools/gn/secondary/build/config/compiler/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gn/secondary/build/config/compiler/BUILD.gn')
-rw-r--r--tools/gn/secondary/build/config/compiler/BUILD.gn4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gn/secondary/build/config/compiler/BUILD.gn b/tools/gn/secondary/build/config/compiler/BUILD.gn
index cd4e49b..bf12a04 100644
--- a/tools/gn/secondary/build/config/compiler/BUILD.gn
+++ b/tools/gn/secondary/build/config/compiler/BUILD.gn
@@ -26,8 +26,6 @@ config("compiler") {
"-fvisibility-inlines-hidden",
]
ldflags = [
- "-Wl,-z,now",
- "-Wl,-z,relro",
]
# Optimization.
@@ -98,6 +96,8 @@ config("compiler") {
"-fPIC",
"-pthread",
"-Wl,-z,noexecstack",
+ "-Wl,-z,now",
+ "-Wl,-z,relro",
# TODO(brettw) gold linker flags, only target.
# There seems to be a conflict of --icf and -pie in gold which can