From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A63A31A1DEB for ; Tue, 2 Aug 2016 07:51:21 -0700 (PDT) Received: by mail-io0-x22f.google.com with SMTP id b62so214808682iod.3 for ; Tue, 02 Aug 2016 07:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Y1IB3T9ayZT7dAkj6XyPhbsVV9X1PHv7CbbEdpQJ5LM=; b=CYyOtgRUlob/K0YxAWQW3gkrL48gGbxZMQ8s05/ZpbMZT8Dczs7p6V2yn5L7O13m/m Vqx8tyjM9oqzfkU+1fhx4viYmtCDxvmuoiohhzKaqThjGECgcUEIVj4+NhnogDa59Ip9 yvWlNk8alj6MErpOX2ORhyctMmIinkoK1YVHg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Y1IB3T9ayZT7dAkj6XyPhbsVV9X1PHv7CbbEdpQJ5LM=; b=VefUVcxFaVSnTDuXfj6R3tgjgyjG09o23Nk2OwQ9im9Uak+L/05AjrQNKqxpYJKuLx Z/i7GwGy6fWGP5iW/v1kkv5kyE3uGx3zoy45kpwXcx1Lj7beY2SRSI1wt0iRm/n6m0nT nlHCAtATk7NttDOcQaZ9hiOWaw+Fm7RkswGjg+dxAdQDO+5eTOdhaPzfZDXAERGeLnyp DwstvyfjA/jdbBynXAo+02ckpdJUj4x/mIUwCfh7II+Jmb3AngxIGFc0S6Q3cQoz0pjv aDM50dEPyM5w23ocjb0YtW4AcYVm5URSMGb25AaUjLNYs4xW1Mwy5UGGF7o/kcujXWEZ WusA== X-Gm-Message-State: AEkooutzSsTjAQaEOPYTMU1I4IMNpMVlVuY/3gsfD3So4wLoU26Brhdt2Y/bM18NMzSmhRnNPkhkUQgudseSzI0w X-Received: by 10.107.135.22 with SMTP id j22mr70995298iod.56.1470149481005; Tue, 02 Aug 2016 07:51:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.204.195 with HTTP; Tue, 2 Aug 2016 07:51:20 -0700 (PDT) In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A1155E457A@shsmsx102.ccr.corp.intel.com> References: <1470148772-15712-1-git-send-email-ard.biesheuvel@linaro.org> <4A89E2EF3DFEDB4C8BFDE51014F606A1155E457A@shsmsx102.ccr.corp.intel.com> From: Ard Biesheuvel Date: Tue, 2 Aug 2016 16:51:20 +0200 Message-ID: To: "Gao, Liming" Cc: "Zhu, Yonghong" , "Justen, Jordan L" , "edk2-devel@lists.01.org" , "leif.lindholm@linaro.org" , "sigmaepsilon92@gmail.com" 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:51:21 -0000 Content-Type: text/plain; charset=UTF-8 On 2 August 2016 at 16:50, Gao, Liming wrote: > Ard: > Without this change, GCC5 LTO can pass build. With it, what difference will be in the generated image? Original way may generate the wrong image, or new way will generate the smaller image? > This is not about code size but about correctness. Compiler switches for code model or alignment etc may affect the way code is generated at link time by the LTO routines.