Skip to content

Commit 4ce5a8a

Browse files
ARM64: Enable PIE on Android.
BUG=373219 LOG=N [email protected] Review URL: https://codereview.chromium.org/287893002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21312 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent 5803197 commit 4ce5a8a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build/android.gypi

+9
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@
215215
'-fno-stack-protector',
216216
],
217217
}],
218+
['target_arch=="arm64" or target_arch=="x64"', {
219+
# TODO(ulan): Enable PIE for other architectures (crbug.com/373219).
220+
'cflags': [
221+
'-fPIE',
222+
],
223+
'ldflags': [
224+
'-pie',
225+
],
226+
}],
218227
],
219228
'target_conditions': [
220229
['_type=="executable"', {

0 commit comments

Comments
 (0)