Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: gni/v8.gni

Issue 2152853004: [gn] Use PIE in v8 executables (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gni/v8.gni
diff --git a/gni/v8.gni b/gni/v8.gni
index 93b766920a7c71bfc7e10d1b36fea5902390a8f5..4abce0d17689aa47084c8084242cc75acf38902d 100644
--- a/gni/v8.gni
+++ b/gni/v8.gni
@@ -79,6 +79,10 @@ template("v8_executable") {
configs += invoker.configs
configs -= remove_configs
configs += add_configs
+ if (is_linux) {
+ # For enabling ASLR.
+ ldflags = [ "-pie" ]
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698