From 70813e6a820135a08c85a437548b29deb7db4e47 Mon Sep 17 00:00:00 2001 From: "ulan@chromium.org" Date: Wed, 14 May 2014 14:11:54 +0000 Subject: [PATCH] ARM64: Enable PIE on Android. BUG=373219 LOG=N R=rmcilroy@chromium.org Review URL: https://codereview.chromium.org/287893002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21312 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- build/android.gypi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build/android.gypi b/build/android.gypi index 73ac93a..6c5ccbd 100644 --- a/build/android.gypi +++ b/build/android.gypi @@ -215,6 +215,15 @@ '-fno-stack-protector', ], }], + ['target_arch=="arm64" or target_arch=="x64"', { + # TODO(ulan): Enable PIE for other architectures (crbug.com/373219). + 'cflags': [ + '-fPIE', + ], + 'ldflags': [ + '-pie', + ], + }], ], 'target_conditions': [ ['_type=="executable"', { -- 2.7.4