From patchwork Thu Aug 4 14:42:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 73283 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1431395qga; Thu, 4 Aug 2016 07:43:03 -0700 (PDT) X-Received: by 10.66.217.132 with SMTP id oy4mr126661551pac.46.1470321783446; Thu, 04 Aug 2016 07:43:03 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id pa7si14959056pac.177.2016.08.04.07.43.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 07:43:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0C3431A1E20; Thu, 4 Aug 2016 07:43:03 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 111711A1E14 for ; Thu, 4 Aug 2016 07:43:01 -0700 (PDT) Received: by mail-wm0-x22c.google.com with SMTP id o80so381341481wme.1 for ; Thu, 04 Aug 2016 07:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=joHnRjgYxgJl1tDGUtn8i/FcNPNXCek8vr+B3NhF/+U=; b=gh09eT7OLqmDfgwA4lw7Wt2aR1+hUIm7jAkY1qcG8q72k4IxPFWlaIENRQg9LzpInS E3uIVH07477K0pJqLNT16OwKv9gLFZnYUP2VEaumXlHydAucWSP02YH6Lwd6MTePYcIa dvH6ywWV+RBZgA+wFujJCPc4ikziqJyyyrgEY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=joHnRjgYxgJl1tDGUtn8i/FcNPNXCek8vr+B3NhF/+U=; b=GIFCCEfAY0ZLRk4ocTn1WcDebw/1ztamcNdBUFeHaz8rTF3Iszl3XUYIm8yfk3f7Rv KhCBs0ijrbs/JDad72N6OQj9jF59FF5KytgVk9OzFed34zq6cne9yMqInx56Ma89xcbC Vndj5sNndE/z23YcFHcB5c1NJ4HBcuJS+40pNVnZq22f6pY4Wiy1e4J9xO8AnoqHF31I /uQwM/bn4n78qk7bKDC6Om+m4UTiY+jUp4lNhUs/9B5bb1xwlldUUqmjg76M8P/vfna+ hzfA0mZ1dSWxqceyCHlPOT1L17YmMXAh/wkXoPlY7FaE2JGEFmtDAlP0jnr9WHEJS5s4 xyQw== X-Gm-Message-State: AEkoouu7/hwTzhwLVNvXdebeyFYVUWHjqenRXSZ7JDBEXfu+1T8qM+/oUwkYxc5AhAwRIV6G X-Received: by 10.194.23.166 with SMTP id n6mr76310174wjf.36.1470321779437; Thu, 04 Aug 2016 07:42:59 -0700 (PDT) Received: from localhost.localdomain (3.red-81-34-118.dynamicip.rima-tde.net. [81.34.118.3]) by smtp.gmail.com with ESMTPSA id va3sm13209789wjb.18.2016.08.04.07.42.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 07:42:58 -0700 (PDT) From: Ard Biesheuvel To: yonghong.zhu@intel.com, liming.gao@intel.com, edk2-devel@lists.01.org Date: Thu, 4 Aug 2016 16:42:45 +0200 Message-Id: <1470321767-26921-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470321767-26921-1-git-send-email-ard.biesheuvel@linaro.org> References: <1470321767-26921-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [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: , Cc: Ard Biesheuvel , leif.lindholm@linaro.org, eugene@hp.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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