From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (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 A288C1A1DF5 for ; Wed, 17 Aug 2016 06:06:53 -0700 (PDT) Received: by mail-io0-x230.google.com with SMTP id b62so134820806iod.3 for ; Wed, 17 Aug 2016 06:06:53 -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=CEupdebr9aAxnZ15rYRL0QSMKlUTqAcJtLwLbensCbE=; b=kStmkEie7xi/+XzNeyRxzicE6XoDceUyCFzTsrQCgQqlyE3tgV5y7pO2HZxxch7xIX IrkOKLjy0edtp1gWmNcWj2L6vT5rMkQA4/BXGm1sjBlBAme2eWHPaWkLSAQBtaCNJ7U7 AA1iP8IiDLXqVoLF270chvEhPNXn/5GiHmahw= 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=CEupdebr9aAxnZ15rYRL0QSMKlUTqAcJtLwLbensCbE=; b=Y6cJ42JDvtd/Eu59/dSXG2IjmA7G2D1wQazW027sET2FAlKjMxbtGFwTlg9cYdbrO5 uEqSTf/oPuJqfs73Ix9b9EATKlwegsN5hjuK8B5lgEsHk6XBIeL+eZdbw0qt/iiMYEgH oJLz66bmi/8ucehCq8/wMRe8kGQHTphinYn/SFz0SCI0d4iNINeXpmSGYNMmSYedU/Id Sru4N/eww5D7Wii6Q6CIYsA7aGqAy0CJRazEvzSKBzulTktvEzZKgtrimUq6rc3Gj7eZ 6P7vnPe+m77FvhI0bXPYwRGYMY4OodglJRF4GYqkXInZrVzk2nFw35iOtcnqzDodNBqX K7Lw== X-Gm-Message-State: AEkooutt3Mq8v7CtBUJIMZcl6xiUg2Fs1UYBKe1n4Q4PvfjZUm3Ck7XkpYP0L9EZ5AMBUYtT73spCRM5/EW+7P+6 X-Received: by 10.107.40.133 with SMTP id o127mr45274795ioo.183.1471439212888; Wed, 17 Aug 2016 06:06:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.204.195 with HTTP; Wed, 17 Aug 2016 06:06:52 -0700 (PDT) In-Reply-To: <06C8AB66E78EE34A949939824ABE2B310338D68E@shsmsx102.ccr.corp.intel.com> References: <1470148772-15712-1-git-send-email-ard.biesheuvel@linaro.org> <1470148772-15712-4-git-send-email-ard.biesheuvel@linaro.org> <06C8AB66E78EE34A949939824ABE2B310338D619@shsmsx102.ccr.corp.intel.com> <06C8AB66E78EE34A949939824ABE2B310338D68E@shsmsx102.ccr.corp.intel.com> From: Ard Biesheuvel Date: Wed, 17 Aug 2016 15:06:52 +0200 Message-ID: To: "Shi, Steven" Cc: "sigmaepsilon92@gmail.com" , "Zhu, Yonghong" , "Gao, Liming" , "Justen, Jordan L" , "edk2-devel@lists.01.org" , "leif.lindholm@linaro.org" , "afish@apple.com" Subject: Re: [PATCH 3/3] BaseTools GCC: add the compiler flags to the linker command line 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: Wed, 17 Aug 2016 13:06:53 -0000 Content-Type: text/plain; charset=UTF-8 On 17 August 2016 at 14:24, Shi, Steven wrote: >> > >> Could you try putting -O2 in the DLINK2_FLAGS for Clang 38? (i.e., so > >> that the last -O option the linker sees is not -Oz) > >> > > Ard, > > Add -O2 or -O3 in DLINK2_FLAGS works as below, thank your suggestion! > Good to know! Thanks, Ard.