From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: leif.lindholm@linaro.org, eugene@hp.com, Ard Biesheuvel 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: [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: Thu, 04 Aug 2016 14:43:01 -0000 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