From patchwork Thu Aug 4 14:42:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 73285 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1431441qga; Thu, 4 Aug 2016 07:43:07 -0700 (PDT) X-Received: by 10.98.34.66 with SMTP id i63mr126041093pfi.130.1470321787827; Thu, 04 Aug 2016 07:43:07 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id xe10si14960110pab.50.2016.08.04.07.43.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 07:43:07 -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 AEF3B1A1E26; Thu, 4 Aug 2016 07:43:05 -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 6E9871A1E26 for ; Thu, 4 Aug 2016 07:43:04 -0700 (PDT) Received: by mail-wm0-x22c.google.com with SMTP id q128so487057304wma.1 for ; Thu, 04 Aug 2016 07:43:04 -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=KRJ9+gLaKdxwqq5t0nrDdPfpATEYsWyS35ARv3UC8nA=; b=CkRglGV6GNEAcrL93pVlM0apYlkpHVW3BB+/y5shYYZMISNbg/o/UCrpAgXH/1NApn 7MqpIKPto2k0YOLw+0NXA7q7fRdQfpQa8nyHfIk3+XXQXHc6lwDc1efYLogLKYJf8WXf WLXwnQXmeDIsi8zPca3s9jhoMdhGzYj+0Mrxo= 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=KRJ9+gLaKdxwqq5t0nrDdPfpATEYsWyS35ARv3UC8nA=; b=kpMaMHTffBlBVloVolN+5CEO1rbhJ+eVYU8ZeVQJlASR+07bEU98VW7kizWq0ba2tb fV/MrLTNkRdLqGwIa2XFvisKQ8AOEqTGQ1MAMhpSGYwTitHdfHkPzJ0kXmeHpMt5wbHU UfIXaw4wmxMesOd7TCJ56VUSBsYj+uSeW4Cu8uV1Z4TvuOfTBzakFfHJmOiP9Lup4P6f ZjUynw/ulZl/Pv5a+zj4NYqkdbyG+rec7v5cNBeLqv97dfqF45zSouU4as5jJYN9pDvo EG2vlIbVVzStMcS+wHMRk+cRuEvvesVmqxzNBl+5nR2cxomcuzNuLXwT0Zm8/GsTt3as t6/Q== X-Gm-Message-State: AEkooutqE5GG0QKCLF1jhGK+V2YcIEHD+glcc5VpzpssehxRVIXE24C1zHcjYon1IU3dgFPY X-Received: by 10.194.70.165 with SMTP id n5mr67216126wju.135.1470321783027; Thu, 04 Aug 2016 07:43:03 -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.43.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 07:43:02 -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:47 +0200 Message-Id: <1470321767-26921-4-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 3/3] BaseTools GCC/ARM: add -fno-builtin to CC flags 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" Avoid build errors when including OpensslLib, which may throw undefined reference errors for builtin functions if -fno-builtin is not specified (and it is already set for IA32, X64 and AARCH64) So set it for ARM as well. 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 diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 88af82a683d9..4f1dd4be378e 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -4334,7 +4334,7 @@ DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-strict-aliasing - DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-probe DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe DEFINE GCC_IPF_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -minline-int-divide-min-latency -DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=soft +DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -mthumb -mfloat-abi=soft DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -fno-asynchronous-unwind-tables DEFINE GCC_AARCH64_CC_XIPFLAGS = -mstrict-align DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie