From 4bf6efffe099f19ca7a1de91633a6563f866b625 Mon Sep 17 00:00:00 2001 From: "cevans@chromium.org" Date: Wed, 22 Jun 2011 00:43:53 +0000 Subject: [PATCH] Trying to make the -pie stick for x64 on the main waterfall... TBR=jeffbailey Review URL: http://codereview.chromium.org/7206052 git-svn-id: http://src.chromium.org/svn/trunk/src/build@89945 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 006548370..65e6a65d3 100644 --- a/common.gypi +++ b/common.gypi @@ -1196,11 +1196,15 @@ # At gyp time, we test the linker for ICF support; this flag # is then provided to us by gyp. (Currently only gold supports # an --icf flag.) + # There seems to be a conflict of --icf and -pie in gold which + # can generate crashy binaries. As a security measure, -pie + # takes precendence for now. ['LINKER_SUPPORTS_ICF==1 and release_valgrind_build==0', { 'target_conditions': [ ['_toolset=="target"', { 'ldflags': [ - '-Wl,--icf=safe', + #'-Wl,--icf=safe', + '-Wl,--icf=none', ] }] ]