commit | 979422c6c2d85b8048b0a9a478b1ee0d6a54eeed | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Dec 01 14:09:48 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Dec 01 14:20:24 2015 -0800 |
tree | 67be1fd65e937d28df5870895ee7bec69a5711ef | |
parent | 14e5c2af10c18f3f2961856c537c545bcd823488 [diff] [blame] |
Add -pie to device executable builds Change-Id: I8faf5a245f61fc412ba617ac762831d9fcdb8e73
diff --git a/cc/cc.go b/cc/cc.go index 3367a23..28ccc4c 100644 --- a/cc/cc.go +++ b/cc/cc.go
@@ -1514,6 +1514,7 @@ } flags.LdFlags = append(flags.LdFlags, + "-pie", "-nostdlib", "-Bdynamic", fmt.Sprintf("-Wl,-dynamic-linker,%s", linker),