commit | 10b1ffaed921bce3014d39ca9dcb705550aa03f0 | [log] [tgz] |
---|---|---|
author | Ying Wang <wangying@android.com> | Fri Dec 13 18:16:26 2013 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Dec 13 18:16:26 2013 +0000 |
tree | e6adf66d98f7920fac3a5e281695f2c93f1ccebc | |
parent | 5859f105fad3ce1ba76fb252c4c5b8fe357a3ce4 [diff] | |
parent | b0eafa21b9ac578e279198b8650fafbee6b83dc3 [diff] |
Merge "enable PIE for dynamically linked Linux host executables"
diff --git a/core/definitions.mk b/core/definitions.mk index e1eb9f1..4e1a25d 100644 --- a/core/definitions.mk +++ b/core/definitions.mk
@@ -1368,6 +1368,7 @@ $(PRIVATE_LDFLAGS) \ $(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \ $(HOST_GLOBAL_LDFLAGS) \ + -fPIE -pie \ ) \ -o $@ \ $(PRIVATE_LDLIBS)