From patchwork Tue Jun 20 18:43:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 106010 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1541083qgd; Tue, 20 Jun 2017 11:44:03 -0700 (PDT) X-Received: by 10.99.121.204 with SMTP id u195mr10301782pgc.16.1497984242970; Tue, 20 Jun 2017 11:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497984242; cv=none; d=google.com; s=arc-20160816; b=ctibRbMW/v7yG1bQnDSsHMIf0zYlA56I3uV237zPZbf/5fH+Y7x7hvH3rgFQUafAPl 7GcHwI8TiTsMXpYTqw+PUE+0bwaDi0Dh0sJ18ypyTuE2LavUMR676PWEtZuuFzM5nUdW MoCiSkFbdi84ES8QZiTRioysuM8GQzB0sa9aQPWS75itkHBKitY/KHwo8GKtcsObmzKY E6eqjwTMGk13N+/g6eXMeKI5rl/yLBeJDXIzhYUv4KSToyQYsenrV9wSwVI6ZDWIO2Dm n25rXwWVDYC5P0rf9UhnGS4e1ZE2ywBX1E2IWSUg3H7fgdqqUHC8ZFAY6DV378w8QHEW ipXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=S8Hz0m2fkpCYSi2UOzERW9dOIZjUABdUL1j39Rh7X5A=; b=zhW89gxRvBxjv/A0bM/1BohX6KyDVY6rvqp7Kg7QXoh68K4Rt6Js/2/S+urLqkYi5U UbNhlmisUFEjkiKN470kNpoCvlKtVtGaHgON7/Akv4zf82LpWL68E/cl2VzC2DHucICI qExcdFCJdu3cAxKzk7xEcGpk64jd0ciZj2Zcd/qq1CPbiA40SNo5FXwMP9OzZnUQbQJe 31CbfaSrlZ9zQScVRS55RieVpSh3/Hnamu9E72udP2JmGpPyIzPxCvTkUwHbo6jhgENn nkiFr7o9YxuAhKYPbbwDaJFCdfRNWkWnqhgSrRo1zkG8YfD8vL778guGEVZ4oOeV72P/ QDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=NaHjRIzB; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id p6si11272856pgc.377.2017.06.20.11.44.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 11:44:02 -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 header.b=NaHjRIzB; 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 sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EB31121A16EFF; Tue, 20 Jun 2017 11:42:38 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (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 BB8EF21A16EEE for ; Tue, 20 Jun 2017 11:42:36 -0700 (PDT) Received: by mail-wr0-x231.google.com with SMTP id c11so47293663wrc.3 for ; Tue, 20 Jun 2017 11:43:59 -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; bh=qwc9leFzsw5NUf+ojEKp45Wru7PwaG/kpjBmmeCT8wQ=; b=NaHjRIzB3DPRNLX7LyDa7kUa78xW2joFrIlwmJcG22KXEC9MOpl+0r8nFBhLOl/7hP bX3zUdDNpbvUBDoo7DFJV3YHZ7BCC3s6g+PHuOnB8jsJsVgCQPm/MUIFx7uZ/gRSqeAp BdBedNqaOovxdQmytt1nURMxUkc9WkeSvBLMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qwc9leFzsw5NUf+ojEKp45Wru7PwaG/kpjBmmeCT8wQ=; b=bayoomfEGZ8EceNyqs1HB5JCARzxSt6ENRTNdvyws3+XVwCAowsfHN7YWDFDCKgbrY kx4vthtJjp0BR7YKu7pfmMxVsOhh/MGQiZA92CNn5mFbi9tBUleDRPnj45kd8RiCiS4+ BrrrtnoZ7W5tKqWm43ZEk8EW4ZuhZ3qoDmsC3ck7/XmsOUVlnS2PHzqgsamYb5zpmOHu x1UUXVjf5ezCirevU6bJtMtocQkv6JdYHDg1+aovnFeZmp5PblOnebrSwwunWx8E5GSn np0RV77rzQKjHZhMT5R7kLu2ztBS+VUzYlrB4Hk+H8+a5Ab7PS0lFYnA+8pPay35MQBs LMtw== X-Gm-Message-State: AKS2vOxkHWRm0GuA/FxkmKN4Crh3cGRvLYzkBgsiqt/J4xmWpmCoUuCi HU/26oqmmUJ+Ko/WDjYfJA== X-Received: by 10.80.167.228 with SMTP id i91mr22073305edc.145.1497984238087; Tue, 20 Jun 2017 11:43:58 -0700 (PDT) Received: from localhost.localdomain (ip16-2-212-87.adsl2.static.versatel.nl. [87.212.2.16]) by smtp.gmail.com with ESMTPSA id j40sm6422297ede.0.2017.06.20.11.43.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 11:43:57 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, liming.gao@intel.com, yonghong.zhu@intel.com Date: Tue, 20 Jun 2017 20:43:53 +0200 Message-Id: <1497984234-19871-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH 1/2] BaseTools/tools_def GCC: ARM/AARCH64: replace -save-temps with -pipe X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" For historical reasons, GCC builds for ARM and AARCH64 pass the -save-temps command line option to GCC, which instructs the compiler to preserve intermediate files, i.e., preprocessor output and generated assembler. Given that this clutters up the Build directory, and slows down the build, let's replace it with -pipe, which explicitly tells the compiler to keep all intermediate representations in memory only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 04a1bcb210ab..7a58ce365ed2 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -4399,7 +4399,7 @@ DEFINE GCC46_X64_DLINK_FLAGS = DEF(GCC45_X64_DLINK_FLAGS) DEFINE GCC46_X64_DLINK2_FLAGS = DEF(GCC45_X64_DLINK2_FLAGS) DEFINE GCC46_ASM_FLAGS = DEF(GCC45_ASM_FLAGS) DEFINE GCC46_ARM_ASM_FLAGS = $(ARCHASM_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_ASM_FLAGS) -mlittle-endian -DEFINE GCC46_ARM_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_ARM_CC_FLAGS) -fstack-protector -mword-relocations -save-temps +DEFINE GCC46_ARM_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_ARM_CC_FLAGS) -fstack-protector -mword-relocations -pipe DEFINE GCC46_ARM_CC_XIPFLAGS = -D__ARM_FEATURE_UNALIGNED=0 DEFINE GCC46_ARM_DLINK_FLAGS = DEF(GCC_ARM_DLINK_FLAGS) -Wl,--oformat=elf32-littlearm DEFINE GCC46_ARM_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 @@ -4418,7 +4418,7 @@ DEFINE GCC47_ARM_ASM_FLAGS = DEF(GCC46_ARM_ASM_FLAGS) DEFINE GCC47_AARCH64_ASM_FLAGS = $(ARCHASM_FLAGS) $(PLATFORM_FLAGS) DEF(GCC_ASM_FLAGS) -mlittle-endian DEFINE GCC47_ARM_CC_FLAGS = DEF(GCC46_ARM_CC_FLAGS) DEFINE GCC47_ARM_CC_XIPFLAGS = DEF(GCC_ARM_CC_XIPFLAGS) -DEFINE GCC47_AARCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -mcmodel=large DEF(GCC_AARCH64_CC_FLAGS) -save-temps +DEFINE GCC47_AARCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -mcmodel=large DEF(GCC_AARCH64_CC_FLAGS) -pipe DEFINE GCC47_AARCH64_CC_XIPFLAGS = DEF(GCC_AARCH64_CC_XIPFLAGS) DEFINE GCC47_ARM_DLINK_FLAGS = DEF(GCC46_ARM_DLINK_FLAGS) DEFINE GCC47_ARM_DLINK2_FLAGS = DEF(GCC46_ARM_DLINK2_FLAGS) @@ -4462,7 +4462,7 @@ DEFINE GCC49_ARM_ASM_FLAGS = DEF(GCC48_ARM_ASM_FLAGS) DEFINE GCC49_AARCH64_ASM_FLAGS = DEF(GCC48_AARCH64_ASM_FLAGS) DEFINE GCC49_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) DEFINE GCC49_ARM_CC_XIPFLAGS = DEF(GCC48_ARM_CC_XIPFLAGS) -DEFINE GCC49_AARCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC44_ALL_CC_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) -save-temps +DEFINE GCC49_AARCH64_CC_FLAGS = $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) DEF(GCC44_ALL_CC_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) -pipe DEFINE GCC49_AARCH64_CC_XIPFLAGS = DEF(GCC48_AARCH64_CC_XIPFLAGS) DEFINE GCC49_ARM_DLINK_FLAGS = DEF(GCC48_ARM_DLINK_FLAGS) DEFINE GCC49_ARM_DLINK2_FLAGS = DEF(GCC48_ARM_DLINK2_FLAGS) From patchwork Tue Jun 20 18:43:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 106011 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1541116qgd; Tue, 20 Jun 2017 11:44:05 -0700 (PDT) X-Received: by 10.84.172.131 with SMTP id n3mr7990039plb.14.1497984245377; Tue, 20 Jun 2017 11:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497984245; cv=none; d=google.com; s=arc-20160816; b=Kse6EXKB0JJACpphJgLg6+uy6ll92ny0ua6bzAP9Qo0FaG80Ns3LglLHjwTBr4HU57 zmmwpvriwAGsbXs0X9rxW5KUxwKcr0utkLncsNkzZk8QtSsWAWWWChMy3FM4gsCGtaaT yDnzsHhaphxxNSX8Vp4iIn8VWuPr5ktYsj66MStbgu7sTeLNFnvYyD9bdGqlK+ZSvYR/ Qw58ADvFBUdJIY143z6GLW84aALuWVP/McleQH1hNo2y8zkj2WsBnqRzR8oywbKb8MMU pkpzQt9oiPax0iu3mbPMJZO5x0UlBsp1KbhScpJlh71Tp0/Tf02/9jPjQ5Ma3IpechKg PRuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=q5zNhUPw2IfWioGFD04Lk1rUWUEPBDRvlsb7qqQVkBQ=; b=Hu24/H+PvZ/IOgRFiiF7zTmpkOSdHegdLsdkwXf3PxOZ2ytfQW3VSUdKcdTutepxsf rIEvNysRW4vK4Qq3mPhmYPqmCcP7AiQYRbg0SMDltx/IIDRBDKZs5esVvF1TCCjU6a3g TR0f2alEZAKrhvZvxJ+rlWPadWHOhoyipjC2quk4TFVHmY2T3/jsR548uTBt35G2SOCR FBKi2Kj2s87qRsThaoNbkjLOMy85/DLSe897KrZBCp0GRftU2lSKsl7w1QEFjWg9v/KS uGnKNFLxtadsY4b1kjE2z8dTtkf9d439hq3uXT+hTrEOPwVF4qeQ6IYiEQxCC38aOUxl kQhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=bpbpss0Y; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id b11si11555210pgr.410.2017.06.20.11.44.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 11:44:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=bpbpss0Y; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4212B21A07AA1; Tue, 20 Jun 2017 11:42:40 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (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 1D91B21A16EEE for ; Tue, 20 Jun 2017 11:42:38 -0700 (PDT) Received: by mail-wr0-x22e.google.com with SMTP id y25so63481029wrd.2 for ; Tue, 20 Jun 2017 11:44:01 -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=SbYnLChH7zbXSKdE/+DJTN1/bqmx1MNL+qPLpt8d/dc=; b=bpbpss0Y87LaPF6okBtujHebvx28gr4msR4UMuLc1sK3eB7+JBmaqL8QvaRpxxRyWs t+PjldvSwGih41iqAyKs/MUswbRRgqmDKUnsZSmHc/LzakhJYfyacQnJneWEX5ufknMM fTIru0iHiJ6rlt6fG+A5OLqajJ4iAYoxRhf8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SbYnLChH7zbXSKdE/+DJTN1/bqmx1MNL+qPLpt8d/dc=; b=N0xsi/rbYdXI8ysnRwvDrsnwaMRo6OE9gT8EfEd2S784fEmAWOr4/ERSWmkMefEP7a lQaJyOS2DdQb0qcqwjGEs7MOCrDX9E/JkgrUZmEkWmcgW5eHMPKvCwptubgfBygzmbRK ACjxXKMFXKwxGhYkg5WxsoJCqUoVh7qFNsSjq0h0XNCh3ACFps3Gt3xZ0CjSwt4oe0cb /X3AFC2yyRWcKkeqCIap8zuGiBhITFSZQp8z6HzUYq/gBQLSmX5r0EyExHL7tpYoBqIV LqPv+/VgbP55SJ5lKvrk2yLM4xaTKenAc5FDj63fj1eriar1jVd9bUAvDH9rqDg8jZ0B mI7A== X-Gm-Message-State: AKS2vOxAiDDRqLdftoy1HXa9RW+1wVcHMut+mir5RM2GP69sy/XqR4oj Jgq06BpjhtpUfExLhMotxA== X-Received: by 10.80.183.4 with SMTP id g4mr22551643ede.138.1497984239441; Tue, 20 Jun 2017 11:43:59 -0700 (PDT) Received: from localhost.localdomain (ip16-2-212-87.adsl2.static.versatel.nl. [87.212.2.16]) by smtp.gmail.com with ESMTPSA id j40sm6422297ede.0.2017.06.20.11.43.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 11:43:58 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, liming.gao@intel.com, yonghong.zhu@intel.com Date: Tue, 20 Jun 2017 20:43:54 +0200 Message-Id: <1497984234-19871-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497984234-19871-1-git-send-email-ard.biesheuvel@linaro.org> References: <1497984234-19871-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/2] BaseTools/tools_def: AARCH64: disable LTO type mismatch warnings X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" On AARCH64, any code that may execute with the MMU off needs to be built with -mstrict-align, given that unaligned accesses are not allowed unless the MMU is enabled. This does not only affect SEC and PEI modules, but also static libraries of the BASE type, which may be linked into such modules, as well as into modules of other types. As it turns out, the presence of -mstrict-align is reflected in the internal representations of the types defined in those libraries. When -fstrict-aliasing is passed to GCC, it assumes that pointers to objects of different types cannot refer to the same memory location, and attempts to exploit this fact when optimizing the code. Since such assumptions are only valid under very strict conditions which are not guaranteed to be met in EDK2, we disable this optimization by passing -fno-strict-aliasing by default. When LTO is in effect, this applies equally to the code generation that may occur at link time, which is why the linker warns about unexpected differences in type definitions between the intermediate representations that are present in the object files being linked. This may result in warnings such as the one below, even if -fno-strict-aliasing is used: MdePkg/Include/Library/BaseLib.h:1712:1: warning: type of 'StrToGuid' does not match original declaration [-Wlto-type-mismatch] StrToGuid ( ^ MdePkg/Library/BaseLib/SafeString.c:1506:1: note: 'StrToGuid' was previously declared here StrToGuid ( ^ MdePkg/Library/BaseLib/SafeString.c:1506:1: note: code may be misoptimized unless -fno-strict-aliasing is used This warning is inadvertently triggered when linking BASE libraries built with -mstrict-align into modules of types other than SEC or PEI, since the types are subtly different, even though the use of code that maintains strict alignment in a module that does not care about this is unlikely to cause problems. And even if it did, it would still only affect code built with -fstrict-aliasing enabled, which we disable unconditionally. So let's just silence the warning by passing -Wno-lto-type-mismatch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 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 Acked-by: Laszlo Ersek Reviewed-by: Leif Lindholm Reviewed-by: Liming Gao diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 7a58ce365ed2..9a3ba9defb12 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -5407,7 +5407,7 @@ RELEASE_GCC5_ARM_DLINK_FLAGS = DEF(GCC5_ARM_DLINK_FLAGS) -flto -Os -L$(WORKS DEBUG_GCC5_AARCH64_DLINK_XIPFLAGS = -z common-page-size=0x20 RELEASE_GCC5_AARCH64_CC_FLAGS = DEF(GCC5_AARCH64_CC_FLAGS) -flto -Wno-unused-but-set-variable -mcmodel=tiny -fomit-frame-pointer -RELEASE_GCC5_AARCH64_DLINK_FLAGS = DEF(GCC5_AARCH64_DLINK_FLAGS) -flto -Os -L$(WORKSPACE)/ArmPkg/Library/GccLto -llto-aarch64 -Wl,-plugin-opt=-pass-through=-llto-aarch64 +RELEASE_GCC5_AARCH64_DLINK_FLAGS = DEF(GCC5_AARCH64_DLINK_FLAGS) -flto -Os -L$(WORKSPACE)/ArmPkg/Library/GccLto -llto-aarch64 -Wl,-plugin-opt=-pass-through=-llto-aarch64 -Wno-lto-type-mismatch NOOPT_GCC5_AARCH64_CC_FLAGS = DEF(GCC5_AARCH64_CC_FLAGS) -O0 -mcmodel=small NOOPT_GCC5_AARCH64_DLINK_FLAGS = DEF(GCC5_AARCH64_DLINK_FLAGS) -z common-page-size=0x1000 -O0