From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by ml01.01.org (Postfix) with ESMTP id D2A501A1DEB for ; Tue, 2 Aug 2016 07:50:09 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 02 Aug 2016 07:50:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,460,1464678000"; d="scan'208";a="1028363829" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 02 Aug 2016 07:50:10 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 2 Aug 2016 07:50:09 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 2 Aug 2016 07:50:09 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.147]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.116]) with mapi id 14.03.0248.002; Tue, 2 Aug 2016 22:50:07 +0800 From: "Gao, Liming" To: Ard Biesheuvel , "Zhu, Yonghong" , "Justen, Jordan L" , "edk2-devel@lists.01.org" , "leif.lindholm@linaro.org" CC: "sigmaepsilon92@gmail.com" Thread-Topic: [PATCH 0/3] BaseTools GCC: pass CC flags to linker Thread-Index: AQHR7Mu9BCRDLd4OLU2siwnYWSEwjKA1vzpw Date: Tue, 2 Aug 2016 14:50:06 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A1155E457A@shsmsx102.ccr.corp.intel.com> References: <1470148772-15712-1-git-send-email-ard.biesheuvel@linaro.org> In-Reply-To: <1470148772-15712-1-git-send-email-ard.biesheuvel@linaro.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzI1NjVmODYtMTdkYy00NDVlLWI4YTUtNDExZjM2YmQ0NDU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InY1azBpb1JvZHk5Wkt3RGRzRVBQM0JcL0J2ejJ4R0hQY2duanR5MisrMFBjPSJ9 x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/3] BaseTools GCC: pass CC flags to linker X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2016 14:50:10 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ard: Without this change, GCC5 LTO can pass build. With it, what difference wi= ll be in the generated image? Original way may generate the wrong image, or= new way will generate the smaller image?=20 Thanks Liming -----Original Message----- From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org]=20 Sent: Tuesday, August 2, 2016 10:39 PM To: Zhu, Yonghong ; Gao, Liming ; Justen, Jordan L ; edk2-devel@lists.01.org;= leif.lindholm@linaro.org Cc: sigmaepsilon92@gmail.com; Ard Biesheuvel Subject: [PATCH 0/3] BaseTools GCC: pass CC flags to linker GCC5 runs in LTO mode, which means it may generate code during the link stage, and this code generation should be subject to the same settings as ordinary code generation. Since we now invoke GCC as the linker, we can start passing the CC_FLAGS to the linker as well, with only minor surgery. This does not bother non-LTO links at all, and forces the LTO links to use the correct settings. Ard Biesheuvel (3): BaseTools GCC: move -c compiler flag to build rules BaseTools GCC5: disable warnings-as-errors for now BaseTools GCC: add the compiler flags to the linker command line BaseTools/Conf/build_rule.template | 18 ++++++++++-------- BaseTools/Conf/tools_def.template | 18 +++++++++--------- 2 files changed, 19 insertions(+), 17 deletions(-) --=20 2.7.4