From nobody Sat Nov 2 10:26:11 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1491439541524510.75857923272554; Wed, 5 Apr 2017 17:45:41 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4275D2094502A; Wed, 5 Apr 2017 17:45:38 -0700 (PDT) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DDB8C20945027 for ; Wed, 5 Apr 2017 17:45:37 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2017 17:45:37 -0700 Received: from lgao4-mobl1.ccr.corp.intel.com ([10.255.29.216]) by FMSMGA003.fm.intel.com with ESMTP; 05 Apr 2017 17:45:36 -0700 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491439537; x=1522975537; h=from:to:cc:subject:date:message-id; bh=Mnsp/SdIx2qVgDXTcndSkLOArjoC1irh9OfWyZA1sWI=; b=BdN/H8yVgZiVc/Y3pwdgnyG6uq3LWFBY7CSbYVPbntgTs0lhOJTpWnGo J1hcP3jOaUwsGNJC3ipUpdAo4FmqJQ==; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,281,1488873600"; d="scan'208";a="842444684" From: Liming Gao To: edk2-devel@lists.01.org Date: Thu, 6 Apr 2017 08:45:32 +0800 Message-Id: <20170406004532.9436-1-liming.gao@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [edk2] [Patch] BaseTools: Update tools_def.template to add -fno-builtin in GCC tool chain 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: Laszlo Ersek , Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Now, -fno-builtin option is added for the specific GCC tool chain. It is a generic option. It can be moved to common GCC option to keep the consistent compiler option. Cc: Ard Biesheuvel Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Signed-off-by: Laszlo Ersek Reviewed-by: Laszlo Ersek Suggested-by: Laszlo Ersek Tested-by: Laszlo Ersek --- BaseTools/Conf/tools_def.template | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index 2c5cd58089..14ecfedab1 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -4335,13 +4335,13 @@ DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-de= buglink=3D$(DEBUG_DIR)/$(MODULE_N RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG =3D NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-debuglink=3D$(DEBUG_DIR)/= $(MODULE_NAME).debug =20 -DEFINE GCC_ALL_CC_FLAGS =3D -g -Os -fshort-wchar -fno-strict-al= iasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common +DEFINE GCC_ALL_CC_FLAGS =3D -g -Os -fshort-wchar -fno-builtin -= fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno= -common DEFINE GCC_IA32_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -m32 -malign-= double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-p= robe DEFINE GCC_X64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mno-red-zone= -Wno-address -mno-stack-arg-probe DEFINE GCC_IPF_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -minline-int-= divide-min-latency -DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -fno-builtin -Wno-address -mthumb -mfloat-a= bi=3Dsoft +DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=3Dsoft DEFINE GCC_ARM_CC_XIPFLAGS =3D -mno-unaligned-access -DEFINE GCC_AARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fda= ta-sections -fno-builtin -Wno-address -fno-asynchronous-unwind-tables -fno-= pic +DEFINE GCC_AARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fda= ta-sections -Wno-address -fno-asynchronous-unwind-tables -fno-pic DEFINE GCC_AARCH64_CC_XIPFLAGS =3D -mstrict-align DEFINE GCC_DLINK_FLAGS_COMMON =3D -nostdlib --pie DEFINE GCC_DLINK2_FLAGS_COMMON =3D -Wl,--script=3D$(EDK_TOOLS_PATH)/Sc= ripts/GccBase.lds @@ -4368,7 +4368,7 @@ DEFINE GCC_IPF_RC_FLAGS =3D -I binary -O e= lf64-ia64-little -B ia64 DEFINE GCC_ARM_RC_FLAGS =3D -I binary -O elf32-littlearm -B= arm --rename-section .data=3D.hii DEFINE GCC_AARCH64_RC_FLAGS =3D -I binary -O elf64-littleaarch64 -B= aarch64 --rename-section .data=3D.hii =20 -DEFINE GCC44_ALL_CC_FLAGS =3D -g -fshort-wchar -fno-strict-alia= sing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -i= nclude AutoGen.h -fno-common -DSTRING_ARRAY_NAME=3D$(BASE_NAME)Strings +DEFINE GCC44_ALL_CC_FLAGS =3D -g -fshort-wchar -fno-builtin -fn= o-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdat= a-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=3D$(BASE_NAME= )Strings DEFINE GCC44_IA32_CC_FLAGS =3D DEF(GCC44_ALL_CC_FLAGS) -m32 -mar= ch=3Di586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-un= wind-tables DEFINE GCC44_X64_CC_FLAGS =3D DEF(GCC44_ALL_CC_FLAGS) -m64 -fno= -stack-protector "-DEFIAPI=3D__attribute__((ms_abi))" -maccumulate-outgoing= -args -mno-red-zone -Wno-address -mcmodel=3Dsmall -fpie -fno-asynchronous-u= nwind-tables DEFINE GCC44_IA32_X64_DLINK_COMMON =3D -nostdlib -Wl,-n,-q,--gc-sections= -z common-page-size=3D0x20 @@ -4471,8 +4471,8 @@ DEFINE GCC49_AARCH64_DLINK2_FLAGS =3D DEF(GCC48_AA= RCH64_DLINK2_FLAGS) DEFINE GCC49_ARM_ASLDLINK_FLAGS =3D DEF(GCC48_ARM_ASLDLINK_FLAGS) DEFINE GCC49_AARCH64_ASLDLINK_FLAGS =3D DEF(GCC48_AARCH64_ASLDLINK_FLAGS) =20 -DEFINE GCC5_IA32_CC_FLAGS =3D DEF(GCC49_IA32_CC_FLAGS) -fno-bui= ltin -DEFINE GCC5_X64_CC_FLAGS =3D DEF(GCC49_X64_CC_FLAGS) -fno-buil= tin +DEFINE GCC5_IA32_CC_FLAGS =3D DEF(GCC49_IA32_CC_FLAGS) +DEFINE GCC5_X64_CC_FLAGS =3D DEF(GCC49_X64_CC_FLAGS) DEFINE GCC5_IA32_X64_DLINK_COMMON =3D DEF(GCC49_IA32_X64_DLINK_COMMON) DEFINE GCC5_IA32_X64_ASLDLINK_FLAGS =3D DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) DEFINE GCC5_IA32_X64_DLINK_FLAGS =3D DEF(GCC49_IA32_X64_DLINK_FLAGS) @@ -5512,7 +5512,7 @@ DEFINE CLANG38_X64_PREFIX =3D ENV(CLANG38_B= IN) DEFINE CLANG38_IA32_TARGET =3D -target i686-pc-linux-gnu DEFINE CLANG38_X64_TARGET =3D -target x86_64-pc-linux-gnu =20 -DEFINE CLANG38_ALL_CC_FLAGS =3D DEF(GCC44_ALL_CC_FLAGS) -Wno-empty= -body -fno-stack-protector -fno-builtin -mms-bitfields -Wno-address -Wno-sh= ift-negative-value -Wno-parentheses-equality -Wno-unknown-pragmas -Wno-taut= ological-constant-out-of-range-compare -Wno-incompatible-library-redeclarat= ion -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-imp= licit-float -ftrap-function=3Dundefined_behavior_has_been_optimized_away_b= y_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference -Wno-tauto= logical-compare +DEFINE CLANG38_ALL_CC_FLAGS =3D DEF(GCC44_ALL_CC_FLAGS) -Wno-empty= -body -fno-stack-protector -mms-bitfields -Wno-address -Wno-shift-negative-= value -Wno-parentheses-equality -Wno-unknown-pragmas -Wno-tautological-cons= tant-out-of-range-compare -Wno-incompatible-library-redeclaration -fno-asyn= chronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-implicit-float = -ftrap-function=3Dundefined_behavior_has_been_optimized_away_by_clang -funs= igned-char -fno-ms-extensions -Wno-null-dereference -Wno-tautological-compa= re =20 ########################### # CLANG38 IA32 definitions --=20 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel