From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 4D66F1A1E04 for ; Sat, 6 Aug 2016 07:18:15 -0700 (PDT) Received: by mail-wm0-x243.google.com with SMTP id o80so7720395wme.0 for ; Sat, 06 Aug 2016 07:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I8yLiPo2326n4Z9Sa0sMe2vc0HYQa3/uKlAVGRruDS8=; b=WbUSvdPMQNyurfxBwkDLz0DJIpvY1DM7CMg8HfdLTNiW+qpiSr8rlHRgdHFyxg5vX7 Pe5vQtEXBwrZJ2/KIdzipkm7vyUn8bbneBim5qfRZcpLkb5aYt0sTyapcoekSe35fb67 qvi4gG5vUAInuaeMDZcyHC0nGdR1ovAmd996uOQc7DAM/QkXF80dcRPYVhO2hlYKR6OM 2sLgi8a4Ame3vbuNvtqe9fRBnavYczwtEaCo7wR4RChtugKl4KmqEb6E2BhcucQsrGCy TCL+OZc1LNM5rYNicTlgUelCHqZZ8h4fJ3jlZYvVyVm6JTjB5dJcv4J9N21VI3hTmtJQ 4zDQ== 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=I8yLiPo2326n4Z9Sa0sMe2vc0HYQa3/uKlAVGRruDS8=; b=S7kOcXn5ETaOsbhzObfwkLbnxpaCFi2rrtuSVVqVT61KbN1Vj2wyS39G2Gz91pdPt5 vz55+exOj4yZLkPflqn/2uGMeYyyRI9zaRZijAflwcc3FmLoGdkwCAboOyOFhz5WTZj+ gfz91oMH6nQ4TpsNqsDt83TDFYhohT02ITaHGLS3ExwlhcrifR1eB0Xo9HG6IXxVhuET QX3vokJ2KrA/deAzaSMIIe8C9TMs3Da7eH9jOjCsiqTnU5wjR0RwtIeAX2vQeu4zWpmn XE8BEHD8V0H1e86PVrIMhhpGLEPl64ZD0Y9IcdX8jllNOlKRhLbz+f8DA5VSwabKEGPi 2NkA== X-Gm-Message-State: AEkoouvD3LOWcR3z+ubSwOCdT43v9tR0NPpqrWTzCdDiRv6ZtG7fqEw0410IA/9kzOXc2DL3lVxbgXy4B5Wpig== X-Received: by 10.194.120.129 with SMTP id lc1mr76538147wjb.131.1470493093670; Sat, 06 Aug 2016 07:18:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.238.198 with HTTP; Sat, 6 Aug 2016 07:18:13 -0700 (PDT) In-Reply-To: <1470321767-26921-2-git-send-email-ard.biesheuvel@linaro.org> References: <1470321767-26921-1-git-send-email-ard.biesheuvel@linaro.org> <1470321767-26921-2-git-send-email-ard.biesheuvel@linaro.org> From: Michael Zimmermann Date: Sat, 6 Aug 2016 16:18:13 +0200 Message-ID: To: Ard Biesheuvel Cc: Yonghong Zhu , "Gao, Liming" , "edk2-devel@lists.01.org" , Leif Lindholm , eugene@hp.com X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: [PATCH 1/3] ArmPkg/ArmSoftFloatLib: disable LTO build for GCC 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: Sat, 06 Aug 2016 14:18:15 -0000 Content-Type: text/plain; charset=UTF-8 StdLib/LibC/Softfloat/Softfloat.inf and StdLib/LibC/LibC.inf need this flags too. Thanks Michael On Thu, Aug 4, 2016 at 4:42 PM, Ard Biesheuvel wrote: > Building ArmSoftFloatLib with LTO results in errors like > > .../bin/ld: softfloat.obj: plugin needed to handle lto object > .../bin/ld: __aeabi_dcmpge.obj: plugin needed to handle lto object > .../bin/ld: __aeabi_dcmplt.obj: plugin needed to handle lto object > .../bin/ld: internal error ../../ld/ldlang.c 6299 > > This library is only linked by OpensslLib at the moment, and only > marginally used at runtime, so just disable LTO for it. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Ard Biesheuvel > --- > ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf > b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf > index f090b3f288ce..3c76381b25dc 100644 > --- a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf > +++ b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf > @@ -48,7 +48,7 @@ [Packages] > MdePkg/MdePkg.dec > > [BuildOptions] > - GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare > + GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-lto > *_GCC46_*_CC_FLAGS = -fno-tree-vrp > *_GCC47_*_CC_FLAGS = -fno-tree-vrp > RVCT:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC > -- > 2.7.4 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >