From patchwork Sun Jul 17 10:34:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 72168 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp175493qga; Sun, 17 Jul 2016 03:34:59 -0700 (PDT) X-Received: by 10.98.86.85 with SMTP id k82mr37140711pfb.82.1468751697760; Sun, 17 Jul 2016 03:34:57 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id le9si15386456pab.201.2016.07.17.03.34.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jul 2016 03:34:57 -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 D8B5B1A1E28; Sun, 17 Jul 2016 03:35:44 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 0F58B1A1E16 for ; Sun, 17 Jul 2016 03:35:43 -0700 (PDT) Received: by mail-wm0-x234.google.com with SMTP id o80so81852130wme.1 for ; Sun, 17 Jul 2016 03:34:54 -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=2HWbx+NKQb9isKw9mgd/G9rxToMOfC/lfXEiH2gAKJA=; b=aCtNuBAPHo9KIL1vZqAv1v/40VEmLgXE14A4Ywk8Zh5CjQitmpwBldpNdxR406+Hr0 M/vO2i/iYwMH9jzO5euEgTfPwf3u6IIBB4RXOH78iuSapVoJJYd1GkebXjjmot9cesuu IsOTalksTU39XwetAxPETMuKuZA9e1yUbK+QM= 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=2HWbx+NKQb9isKw9mgd/G9rxToMOfC/lfXEiH2gAKJA=; b=mgfw1FVZkB/a/PWgPgzHiuClF3eevbJ74V0OC3ulw46mLeK/ujYcBRwwPrLtUT28UV cJTTPlKduCQPxx76BRdNd+EZRq6PmRXv67mJrDM/mbV6Pjq2esww5XAUnn3fDjwdxa3y 2YFC2svEw67paizQl9p3YsFBErrQQ5Vr5UeEvXJ7yMenUbqfdobscddgnCeFphO4CwuM pNtxRf/AQ1uDoghTIsesqs8nKxIcO4fovrpUbO65hq1TuPptdEXr33hAEjEJSN/q5j0J SZSW5/Yj1dyPxLyO7lKnXseCns5dmgygvgXcZhkYTtPx3ItWka40CYSdnM2T16d/2pVc j/8Q== X-Gm-Message-State: ALyK8tJ+q5SZzHjMIfSnFwY74vQn667DPESFugOAHa6SIeWShdze2Wjjl2mgcFZn5yIOVdRa X-Received: by 10.28.30.83 with SMTP id e80mr29035475wme.97.1468751693316; Sun, 17 Jul 2016 03:34:53 -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 d64sm7075922wmc.22.2016.07.17.03.34.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Jul 2016 03:34:52 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com, afish@apple.com, liming.gao@intel.com, steven.shi@intel.com, yonghong.zhu@intel.com, michael.d.kinney@intel.com, jordan.l.justen@intel.com Date: Sun, 17 Jul 2016 12:34:39 +0200 Message-Id: <1468751686-28047-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468751686-28047-1-git-send-email-ard.biesheuvel@linaro.org> References: <1468751686-28047-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v3 2/9] CryptoPkg: set new define to avoid MS ABI VA_LIST on GCC/X64 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: bruce@cran.org.uk, pbonzini@redhat.com, Ard Biesheuvel , ting.ye@intel.com, qin.long@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Set the #define NO_MSABI_VA_FUNCS that will be introduced in a subsequent patch to avoid the use of the MS ABI in variadic functions. In EDK2, such functions normally require the EFIAPI modifier to be used, but for external libraries such as OpenSSL, which lack these annotations, it is easier to simply revert to the default SysV style VA_LIST ABI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- CryptoPkg/Library/OpensslLib/OpensslLib.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf index 4488bb522268..f3c7850b517f 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf @@ -509,7 +509,7 @@ [BuildOptions] INTEL:*_*_IPF_CC_FLAGS = -U_WIN32 -U_WIN64 -U_MSC_VER -U__ICC $(OPENSSL_FLAGS) /w GCC:*_*_IA32_CC_FLAGS = -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -w - GCC:*_*_X64_CC_FLAGS = -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -w -UNO_BUILTIN_VA_FUNCS + GCC:*_*_X64_CC_FLAGS = -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -w -UNO_BUILTIN_VA_FUNCS -DNO_MSABI_VA_FUNCS GCC:*_*_IPF_CC_FLAGS = -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -w GCC:*_*_ARM_CC_FLAGS = $(OPENSSL_FLAGS) -w GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -w