From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817011397901.2309847307324; Tue, 12 Jun 2018 08:23:31 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 962C621295B29; Tue, 12 Jun 2018 08:23:30 -0700 (PDT) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 0A7F321295B20 for ; Tue, 12 Jun 2018 08:23:27 -0700 (PDT) Received: by mail-wm0-x242.google.com with SMTP id j15-v6so24217472wme.0 for ; Tue, 12 Jun 2018 08:23:27 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:25 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::242; helo=mail-wm0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=LfLa8F4gsA3noW+oCZVDVbZS3fyISFGwd6SyXz5CxJs=; b=Q6hdJHytDWnObdJpmnSIZdrFav0LlvegpdXuHGearOrqjKXOWRq5OPh1pu4uhoKzzf OF7QBMqzxQTV6GY6ctZR5eU1NS97qxUXqqAnjEM8UMVqlvDNAlGZJcoRK45y6OpPremK yphnCw1cTRQphSUudnaKTMu2TIsVVnoeKGgmU= 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=LfLa8F4gsA3noW+oCZVDVbZS3fyISFGwd6SyXz5CxJs=; b=crmOa6qNz19ma5wuB5PYvLe0mzzRcuaG33HbBVfzuAVtVB1olm2ip7yyzOQYDU/JBz 6mVIxDAuHAzo0YtQ8gN+LnqwLNKSJ/touCK3KVxwVWRql34StBXYVfNvdbnPwBOf5Gjc JNlvS6+JWlN15YrMti4yXDXJeAwgXe2gzsXhFoZ/lTC6Q6lqqWGY4bvONF8mHTsd5RsG 5lB/I9VzI/1cr83dtx2+MWrdr9UEiGSc+cXMN1UjQ6uvnD1mSdO1fFAecCm//zBfe5PO XmtIScx7Ixn4M+euFpBJ78ysEn0In6BPGE9t1ZNhZiTtMoa/eFgEkVm6qwgUZxQ/XcBA 7WXw== X-Gm-Message-State: APt69E2uu1BgnqXPTdsBoL8iMhz6mFCemIpX0PghkbKTcDo7sCLZKgyI ad1Of35VOfkhMtqQL2pmqTx3RtPqrvI= X-Google-Smtp-Source: ADUXVKK30PPgc/AUztUI/vT/7jXeRfUf2/s0NVSYwgg/yrZdshk4Jo0H1afWtX7SuD3QQLTiaR2TYw== X-Received: by 2002:a1c:f45:: with SMTP id 66-v6mr565986wmp.124.1528817006369; Tue, 12 Jun 2018 08:23:26 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:22:56 +0200 Message-Id: <20180612152306.25998-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 01/11] MdePkg/ProcessorBind.h: define macro to decorate module entry points X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Add a macro EFI_ENTRYPOINT that we will use to decorate functions that serve as the entry points for EFI modules. This is necessary to work around a limitation in GCC, which may prune such routines from the ELF binary if they are defined with hidden visibility, even if they are explicitly referenced as the entry point on the linker command line. The hidden visibility is required to inform the compiler that, even though we are building the code in PIE mode, we are only doing so to get code that can run anywhere in the address space without requiring 64-bit wide absolute symbol references, and we are not interested in other things that PIE code typically provides, such as symbol preemptability and a reduced CoW footprint due to the fact that all dynamic relocations target the same area in the binary. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdePkg/Include/Base.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 4f7bd4449c36..eee48dcd4b29 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -274,6 +274,13 @@ VERIFY_SIZE_OF (__VERIFY_UINT32_ENUM_SIZE, 4); #define PACKED #endif =20 +#ifndef EFI_ENTRYPOINT + // + // Set to empty value if not already set by the arch-specific header + // + #define EFI_ENTRYPOINT +#endif + /// /// 128 bit buffer containing a unique identifier value. /// Unless otherwise specified, aligned on a 64 bit boundary. --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817013584962.4387457239567; Tue, 12 Jun 2018 08:23:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id BFE2221295B2F; Tue, 12 Jun 2018 08:23:30 -0700 (PDT) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::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 77BFA21295B26 for ; Tue, 12 Jun 2018 08:23:29 -0700 (PDT) Received: by mail-wm0-x231.google.com with SMTP id p11-v6so24118355wmc.4 for ; Tue, 12 Jun 2018 08:23:29 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:26 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::231; helo=mail-wm0-x231.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=KdWjsCNZ6hTPDVkkQ2Gj8GMro7myUif8qNV4FkVKb+0=; b=bMOAvLL9AbGVksp4/SMVjlBSByhSwBtu48ZlMPhthBgcVSVH10ZOqFJnGqR0/l3US0 rmDLECKLYlPx6919kcGcruV0M8P4f00CK9M78wkG0IAxsWN9GltKezO/dscZ4pdRCtHh f4slZhWbh7m/fOXifnXkUhALNdXcYmfrvh+uk= 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=KdWjsCNZ6hTPDVkkQ2Gj8GMro7myUif8qNV4FkVKb+0=; b=D/gKutXH03URvgB/9G7megOTlRd8VVbTJCvmB24Qz00PYSrd9LTLw1E/PhaE1v2z8n Tn1FMYF6tu7hJGHgrYHRayf9MIDfpk5j9777q49wojssOZ1k57JA4+Zx2B4I50MntUNj OFyhw1EHK8w1dEoTvTNCfj+ZAxNi9wGIaDDKJJc6xXzDlfX6u54KT/wsWN7hdHcPbwTs hPuYY+qhM/HoWMwe7e84NdBfDtMHet9BlgjI7M6AtypIPJy5fjFm41Amw3oWwIWpl6SU QZvOWyR52EjHMOvju0FXgqcPKIaSnxKN7T8p9UBIUXXa0fhuDpV3HVs+67cXBAt6/WNU xfoA== X-Gm-Message-State: APt69E2yHVGuxy5aiQS9W2HXp9wybNRl0Do1LG0Ocoo3+bW5WRSDDOaX MTd9QMlgcbE5wgUG5m2iv1eDDpajKzo= X-Google-Smtp-Source: ADUXVKJPS0cWMdp2q7W16z93wXLCGIaE00QioABP+sLotCTWF4jwPCN3korFes4w59sYMVj7PmV5Mw== X-Received: by 2002:a1c:852:: with SMTP id 79-v6mr536407wmi.115.1528817007670; Tue, 12 Jun 2018 08:23:27 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:22:57 +0200 Message-Id: <20180612152306.25998-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 02/11] DuetPkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- DuetPkg/DxeIpl/DxeInit.c | 1 + DuetPkg/EfiLdr/EfiLoader.c | 1 + 2 files changed, 2 insertions(+) diff --git a/DuetPkg/DxeIpl/DxeInit.c b/DuetPkg/DxeIpl/DxeInit.c index b9a40a8209c1..9c86279c17c1 100644 --- a/DuetPkg/DxeIpl/DxeInit.c +++ b/DuetPkg/DxeIpl/DxeInit.c @@ -269,6 +269,7 @@ Returns: =20 EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFILDRHANDOFF *Handoff ) diff --git a/DuetPkg/EfiLdr/EfiLoader.c b/DuetPkg/EfiLdr/EfiLoader.c index ac950b55fa6d..89c8ff3885ff 100644 --- a/DuetPkg/EfiLdr/EfiLoader.c +++ b/DuetPkg/EfiLdr/EfiLoader.c @@ -282,6 +282,7 @@ PrintHeader ('F'); =20 EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( UINT32 BiosMemoryMapBaseAddress ) --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817018843425.52502524189197; Tue, 12 Jun 2018 08:23:38 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 067E821295B38; Tue, 12 Jun 2018 08:23:32 -0700 (PDT) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) (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 B131821295B2B for ; Tue, 12 Jun 2018 08:23:30 -0700 (PDT) Received: by mail-wr0-x229.google.com with SMTP id f16-v6so24540914wrm.3 for ; Tue, 12 Jun 2018 08:23:30 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:28 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::229; helo=mail-wr0-x229.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=33dKku5iTvkwLsR9jj2Yg8IHaQgu3sV6/5zJjGwyQt4=; b=AOmAIs+yqQJEPg8M02/uIdLXhTzooiS2pxRnjzQRztmypJQOAZDYl9GXrtPn5DKx6R Grm+dpW2vCEzsrSDwG5bz+iOl5GuYqgR4L7jrDW3cCLeE+RTdR7zJLreQ669+mMnFUS3 YwVx0Hf+ZaeXDhgBeU58bgwWWM3L1VlVNBGds= 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=33dKku5iTvkwLsR9jj2Yg8IHaQgu3sV6/5zJjGwyQt4=; b=M243xomqadIiTZrrbpSzu6fwoUiaJOb5OjrRZuzN6BOSuUcCH8GfLvnc9TWllfVZTK mh3pGOA6Dj2CFR1JY750mpIBO9JZ6MzsxmZwJy8Hn4dxK90Lh0KF+r400yc6j9MiB9Rg y9EJChq9ivh3d7m12Rq+8puduyjTk9r3nlW80iic1Xki+yegqKuaZe1ZewRAXc6bnqK0 j/WWF11q6/fSy/n+oA0mxVkCBi+A+iJVcNWV5xOQoUTlfsMXRPU+lmJIK19ez67gBJr9 Jn4sYao2ixD9iNvgV4uU0V5Hk0LCeK4n3VY7GDkAZi2OxQp5lRcglm05Xg8LBF3MhOXT w5yw== X-Gm-Message-State: APt69E3IRQRIAA9fXJU3bEBIuf2vsngoDrmQ6hFF5h3kxWXsdYja/NNi ig7vNz+rf5z1hs2o15WaVmlEVfmhXsc= X-Google-Smtp-Source: ADUXVKKNM+gVsfSGwweXGjwzUFInn0ue/TQ6P2Up2pYeIg3uUPxqtDL/+ZlAcaHiIF/eiwrsJ59EtA== X-Received: by 2002:adf:bc03:: with SMTP id s3-v6mr699373wrg.211.1528817008878; Tue, 12 Jun 2018 08:23:28 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:22:58 +0200 Message-Id: <20180612152306.25998-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 03/11] EdkCompatibilityPkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueD= xeDriverEntryPoint.c | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueP= eimEntryPoint.c | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueS= mmDriverEntryPoint.c | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIG= lueDxeSmmDriverEntryPoint.h | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIG= luePeimEntryPoint.h | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIG= lueUefiDriverEntryPoint.h | 1 + 6 files changed, 6 insertions(+) diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoint= s/EdkIIGlueDxeDriverEntryPoint.c b/EdkCompatibilityPkg/Foundation/Library/E= dkIIGlueLib/EntryPoints/EdkIIGlueDxeDriverEntryPoint.c index 2b71b1ad42ee..03100f15014f 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkII= GlueDxeDriverEntryPoint.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkII= GlueDxeDriverEntryPoint.c @@ -563,6 +563,7 @@ __EDKII_GLUE_MODULE_ENTRY_POINT__ ( **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoint= s/EdkIIGluePeimEntryPoint.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIG= lueLib/EntryPoints/EdkIIGluePeimEntryPoint.c index 3a9ed9b4b5fe..a88915a403b8 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkII= GluePeimEntryPoint.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkII= GluePeimEntryPoint.c @@ -75,6 +75,7 @@ __EDKII_GLUE_MODULE_ENTRY_POINT__ ( --*/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_FFS_FILE_HEADER *FfsHeader, IN EFI_PEI_SERVICES **PeiServices diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoint= s/EdkIIGlueSmmDriverEntryPoint.c b/EdkCompatibilityPkg/Foundation/Library/E= dkIIGlueLib/EntryPoints/EdkIIGlueSmmDriverEntryPoint.c index 954f7e9c39da..b66e87d87b8e 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkII= GlueSmmDriverEntryPoint.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkII= GlueSmmDriverEntryPoint.c @@ -307,6 +307,7 @@ __EDKII_GLUE_MODULE_ENTRY_POINT__ ( **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Li= brary/EdkIIGlueDxeSmmDriverEntryPoint.h b/EdkCompatibilityPkg/Foundation/Li= brary/EdkIIGlueLib/Include/Library/EdkIIGlueDxeSmmDriverEntryPoint.h index 4a04b9909888..c1c078c4e07b 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/E= dkIIGlueDxeSmmDriverEntryPoint.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/E= dkIIGlueDxeSmmDriverEntryPoint.h @@ -49,6 +49,7 @@ extern const UINT8 _gDriverUnloadImage= Count; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Li= brary/EdkIIGluePeimEntryPoint.h b/EdkCompatibilityPkg/Foundation/Library/Ed= kIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.h index 537d3951e1fd..461c0e4874ae 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/E= dkIIGluePeimEntryPoint.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/E= dkIIGluePeimEntryPoint.h @@ -39,6 +39,7 @@ extern const UINT32 _gPeimRevision; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_FFS_FILE_HEADER *FfsHeader, IN EFI_PEI_SERVICES **PeiServices diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Li= brary/EdkIIGlueUefiDriverEntryPoint.h b/EdkCompatibilityPkg/Foundation/Libr= ary/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverEntryPoint.h index 07a7775abc46..f17aefaf48e7 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/E= dkIIGlueUefiDriverEntryPoint.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/E= dkIIGlueUefiDriverEntryPoint.h @@ -60,6 +60,7 @@ extern const EFI_EVENT_NOTIFY _gDriverSetVirtualA= ddressMapEvent[]; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817023264844.6770993123126; Tue, 12 Jun 2018 08:23:43 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3375A21295B27; Tue, 12 Jun 2018 08:23:33 -0700 (PDT) Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (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 E82FF21295B27 for ; Tue, 12 Jun 2018 08:23:31 -0700 (PDT) Received: by mail-wr0-x244.google.com with SMTP id e18-v6so16278222wrs.5 for ; Tue, 12 Jun 2018 08:23:31 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:29 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=uCUSvnYbpvB+1807pyzZSzWI/7cLC748ThevsgRP4Vg=; b=eWfdcZjZ+iwgp9m8/KFbGCQHxDTT4p/W6VGKqvr2pkXyOv9PCczASpE+4STFngM1od jAbSoIfr4UNFRftxhXdbTng2qt+J/L3QBguJBMcPKfAjWqnSWrFrJB5lzKztzEWJd7a5 cwn1ICylreejCtDn+yuSWOn9HXdrUP05B9xbE= 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=uCUSvnYbpvB+1807pyzZSzWI/7cLC748ThevsgRP4Vg=; b=BsLNSTFABbXRFBuXC2+HxjZWS0DTRVwXu4EFw8c+nubnlqoP82Vw6/YtRyyyuK833z fTctcbk+jAQw+fcIyIOWMSozS67O2wBniDeNks6tEriRjMy+AkwXeo4WfDiMnD5aSpA3 +XYamqJovAT92EBTTHrqLzax/GVCbtZRf+etYFckH53VjW8+gG7warQeNZLXCZQFHPmf /2QTNn0cn+s3fHgJTvKwwdO7u/bMhboANklqxHXOmZba6sA3RqQ3pP0s3rOc6ISV1ITO DAIhRBKag7HRKtP8E8vUD1YKTVXK8663m3GswUQypTNAEY2pdeXfVgZcgZxT+BnP1qwC xhTw== X-Gm-Message-State: APt69E1tLHRxLjRz5u+LA878y0QE0rKQZpe3VCSNCJP1AvSzHjr+0OHS dwc6HhvqZp5qFMVhgHYyI+HovcBI9Qg= X-Google-Smtp-Source: ADUXVKLm3L8xMjBfXwlXzl26tLRf8tlwBqym+nWPjV3xWegyiTNuID68wh5dUjBt83JTQdC89EeCfA== X-Received: by 2002:adf:8af5:: with SMTP id z50-v6mr671724wrz.22.1528817010204; Tue, 12 Jun 2018 08:23:30 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:22:59 +0200 Message-Id: <20180612152306.25998-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 04/11] EmbeddedPkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- EmbeddedPkg/TemplateSec/TemplateSec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/EmbeddedPkg/TemplateSec/TemplateSec.c b/EmbeddedPkg/TemplateSe= c/TemplateSec.c index c63adbb6f90f..09bc779aced3 100644 --- a/EmbeddedPkg/TemplateSec/TemplateSec.c +++ b/EmbeddedPkg/TemplateSec/TemplateSec.c @@ -21,6 +21,7 @@ #include =20 VOID +EFI_ENTRYPOINT _ModuleEntryPoint ( VOID ) --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817026717733.4429874318342; Tue, 12 Jun 2018 08:23:46 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5B81321295C85; Tue, 12 Jun 2018 08:23:34 -0700 (PDT) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 3840621295B3B for ; Tue, 12 Jun 2018 08:23:33 -0700 (PDT) Received: by mail-wr0-x241.google.com with SMTP id e18-v6so16278320wrs.5 for ; Tue, 12 Jun 2018 08:23:33 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:30 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=lr6aMwKMhKn8qLUIw0YtfWMfsosTF1hWxllVMgSV1xw=; b=Tzzmx94F8Mhkrni3cKRCkGOC9xusEITpkkmq8O69yEplghvrEO9k3jvB/BvPfJdjHO KLJ25dP40iF9+YFJ0/Q/lJeVXH5QKzSxuKCoWUtIk9jPqULCRTnV97C0yBEZKE/6bQAu rxjjLGOnOgQotSshwpgZd0pbrt2CaKket6dE0= 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=lr6aMwKMhKn8qLUIw0YtfWMfsosTF1hWxllVMgSV1xw=; b=becI5FxCGqvUlFVAfGMzGPZC71FHx5b5bHB5zKYcKdxsKy92jj5hxfwxBtFvPD0xBs JF6PUIj7DHj5v88xRTTrqTjYXjMXIKeeY/AfHE/Av8Fn2HwCtka0CWgS0PimkT8c6RyU YMz8A413EyF9sFbnyvnUEFguxXYa1g0GRsN/9pWlSddqRd7Tbr5XwCgLItT0NUq4naHc 5+t9YYm3z9YjoTNTN3WpT5t1H4MSz3icdKGbonLSKk62k/EyvVMZ9j9BovgpONeW2BkP 63JAWbwNBV+WGq/bXIlCOnSyQtnbkjClQYdkX+qwjzMMXXSwzNkN/w7opgRAmJeMElIF f8yQ== X-Gm-Message-State: APt69E15FkJbxD3uuwdSAn4kz4ChYBkk3C1I3/dBlX1vtAXF9hU98Xwh wT9R5spPXwri89uG8Kyg49EWAPAN/zA= X-Google-Smtp-Source: ADUXVKJkgBIqTCdU5/IRahXG2tS3NmA/NGEGTX9iuwAepL/XSkWSsT7DcO11roHgjfvQruEAMrk+UQ== X-Received: by 2002:adf:8023:: with SMTP id 32-v6mr666733wrk.243.1528817011635; Tue, 12 Jun 2018 08:23:31 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:00 +0200 Message-Id: <20180612152306.25998-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 05/11] EmulatorPkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- EmulatorPkg/Sec/Sec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/EmulatorPkg/Sec/Sec.c b/EmulatorPkg/Sec/Sec.c index 8a015682ddd0..266e57240a87 100644 --- a/EmulatorPkg/Sec/Sec.c +++ b/EmulatorPkg/Sec/Sec.c @@ -67,6 +67,7 @@ EFI_PEI_PPI_DESCRIPTOR gPrivateDispatchTable[] =3D { **/ VOID EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_SEC_PEI_HAND_OFF *SecCoreData, IN EFI_PEI_PPI_DESCRIPTOR *PpiList --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817030780315.83094418690325; Tue, 12 Jun 2018 08:23:50 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 857B421295B3B; Tue, 12 Jun 2018 08:23:36 -0700 (PDT) Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (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 04D2621295B36 for ; Tue, 12 Jun 2018 08:23:34 -0700 (PDT) Received: by mail-wr0-x242.google.com with SMTP id h10-v6so24520123wrq.8 for ; Tue, 12 Jun 2018 08:23:34 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:32 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=ylz0h67abCuDnzfZBN/HVI6xV/TmjnmQE3qOMhJ73eo=; b=HbOJ4Dp/KB/j/EMGoks9Pmv3kypATvrtOC7WQa3pyHwVRDO5Fm23GFw59RD04q5uYF l7SjlU8Dmp0FIkHCosa2aNpNcZK3DiLTXqRuy9Ri/4+QOxK8IhDWiYtGHxrVzX27K6GH vmtC6vkEsQYvbVY3IeGavtFDm6PGtKyTMeZCk= 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=ylz0h67abCuDnzfZBN/HVI6xV/TmjnmQE3qOMhJ73eo=; b=nugoBSVL+rGsCahdGXlRQEKOaxBoYplOAuDlLL3Mt1g3KReEt/+BIS0PXFFyRpXn7G I4/BhyELmakxjKEBEFeXCWyQ45LlslYpK23kFYuhwPnkHw+zzE6VHdcDjT7fnDMuSG/0 nvGQ7ssVDk3pEqtcJLndkD3RBxNN1uas7jaOYb0da5oGxcaVe7+8Z0Lg38L5GrMoTXQY 854Jo55+pOhSZaecMhacX44+39zK1lXeGns1h84cFm0cImTiWK9WBknuWTUtbi+l7uKX sCT6vf35R4DZGEQh67DB5Ik51EyWzTIEWDO6Blmbe0fulsJ2OfXa7zjplJtOL/Q6IDDa 6xVw== X-Gm-Message-State: APt69E27Eohla4xqQRmFt9CbOslRvrOoLrPqbdxL9gRZpkIM0RiAImfg nLH6B1LfUWOAo3hWxzvp7SmCESHcHtk= X-Google-Smtp-Source: ADUXVKIOs8RftlFBfj8SHav2o/+VN3foTS4GMpTjcgyPDAIj4fEQG9v8nSOGXs6eN0ApGed38hdRSw== X-Received: by 2002:adf:a032:: with SMTP id k47-v6mr665844wrk.202.1528817012941; Tue, 12 Jun 2018 08:23:32 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:01 +0200 Message-Id: <20180612152306.25998-7-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 06/11] IntelFrameWorkPkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPo= int.c b/IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.c index e6892cbafefd..e1b6f065e455 100644 --- a/IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.c +++ b/IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.c @@ -156,6 +156,7 @@ _DriverUnloadHandler ( **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817035027113.29241811680595; Tue, 12 Jun 2018 08:23:55 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B12F121295C90; Tue, 12 Jun 2018 08:23:37 -0700 (PDT) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 DD5DD21295B26 for ; Tue, 12 Jun 2018 08:23:35 -0700 (PDT) Received: by mail-wm0-x241.google.com with SMTP id r15-v6so21282784wmc.1 for ; Tue, 12 Jun 2018 08:23:35 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:33 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=KH5jXmkGz7Ya7rjB2YYm57uCuW0S70cBFyR8BBzDVRM=; b=jqppZbB2Yu0hjCMrYyXrfGInUQo37izumnMOJmqXcticABLvPvaglMKuRjI+i2Y5EX tUVxhetKvQV0fQwzVop5QhVwBSr7YQijqI8ZZgu/gBxCk9glPKlp2nCf8HvtjIklw1E6 Jywxkhtm4eUos00Gw0JBD1JLr1oJpvFw7iwWk= 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=KH5jXmkGz7Ya7rjB2YYm57uCuW0S70cBFyR8BBzDVRM=; b=AvZ3D2E5Tyo84ay49V/ItP8lBA5BN65srhUjbiqsiNVaXk5icsoNsv4iCd892L0lI2 Qi0XrT4mBGzGSGPFHP1BsWqBnFgTob5Xsu8TF4XZUlo8d1i9sI9ib8lfzYBjYmkh4e6C /Wh+KD5MpFXlHyqDppn8SlwyUVCQU62wJrilHnYrOjEbwfM+ia1ZPA3F1ASTscvHxERW MPLMTk4zaAtdobQ5YgaFU7136gMSFJsm7nTh6cFxsDjxAydCWOZikhB0JvWnhy+jYcNq /bauR2i2lBS2Sjo3MRw/no8IMYib4qyUSR/c9GFVG/bj0K5UEp7vCA3ha25uAKurteeU /lQg== X-Gm-Message-State: APt69E1JbQnnrdYmpSIhkpST/0upfxdKr6oja9dZ0CFhF3qHkDK9TaiF rTUXAoVftAF4ZuG06+E/h6RjyzqlqNY= X-Google-Smtp-Source: ADUXVKKS5/3LM4h/PXsUntYVBAROCLJg4HyNyhIh1Aob8rEZC5Wz5/nlm5YG0Z7F0Gy5x98Yj8hMtQ== X-Received: by 2002:a1c:f308:: with SMTP id q8-v6mr571391wmq.6.1528817014257; Tue, 12 Jun 2018 08:23:34 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:02 +0200 Message-Id: <20180612152306.25998-8-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 07/11] MdeModulePkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c b/MdeModulePk= g/Universal/CapsulePei/X64/X64Entry.c index e1871c3c2ad5..0dc0b819e57e 100644 --- a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c +++ b/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c @@ -219,6 +219,7 @@ PageFaultHandler ( **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( SWITCH_32_TO_64_CONTEXT *EntrypointContext, SWITCH_64_TO_32_CONTEXT *ReturnContext --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817042332553.3750085155931; Tue, 12 Jun 2018 08:24:02 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 130C321295CA6; Tue, 12 Jun 2018 08:23:39 -0700 (PDT) Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com [IPv6:2a00:1450:400c:c0c::236]) (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 60AE621295C89 for ; Tue, 12 Jun 2018 08:23:37 -0700 (PDT) Received: by mail-wr0-x236.google.com with SMTP id e18-v6so16278540wrs.5 for ; Tue, 12 Jun 2018 08:23:37 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:34 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::236; helo=mail-wr0-x236.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=bmlLfwe9xJbG+wLg3ZNVfcOHjtLPYIx/4cRcfxE8Vdw=; b=L5OGlwsk+Y71JPLzUgNEvO912i0NH0k36x5YhUyHnQskRyvWzWjvlQqEXOqIilNi8k IffDakgcqnnEkGdRZ+MBpv9nd2HgRCWfGSxobfmggC6jpOnSaUMJ0mSDJ/WM4lHrpq52 v3GpIwWTetr/P+Z0pBVe/Vy5/JMQH17Ds6shQ= 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=bmlLfwe9xJbG+wLg3ZNVfcOHjtLPYIx/4cRcfxE8Vdw=; b=izSDFSKDU5Gptspsvvx9d7SBSQ4sFyunZsXBNnFq2NgaIvm9R7FZlhaIvqoCB9ueOC xGllwbhMBk8j9/LqlX8dFNJ4OSEZjL9lY1GsJO94oxkGEFHFDQtqxcokeFFeESXAXn/x 41AUubhxwxSRySKWB7a2P8RXbIXoAYLcLd3K8ovaxXgbp2KMMnzbLmGCyZt8IMPnAlp/ CP6B0g7p0020B2HAt2vitkSyLAN/hIoNYFiGB58CBmr+uW3s0eFlETIPNnFfPB9mjrH7 SXLt4d7wUkmRzPnH0jTlOm4NilnFlijupKIIeMkmzK29op1VirRUvAu3f5VVBhOJFxhl //xQ== X-Gm-Message-State: APt69E2kaAWGt2O64ejdBQAOOeQhQuDxPb7fMkodgBjgRQeoAOmm4HjA 499abwniv3128U0kSAzvrwEyES6k2Ik= X-Google-Smtp-Source: ADUXVKKK+a3kHDe05TEKKek3IT6Pfrw+EQ7o9bcPu1+PEFHw/1usbyFPz1ryujQrYu0Xt6Wfi6mgrA== X-Received: by 2002:adf:a54a:: with SMTP id j10-v6mr709832wrb.155.1528817015592; Tue, 12 Jun 2018 08:23:35 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:03 +0200 Message-Id: <20180612152306.25998-9-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 08/11] MdePkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdePkg/Include/Library/DxeCoreEntryPoint.h | 1 + MdePkg/Include/Library/PeiCoreEntryPoint.h | 1 + MdePkg/Include/Library/PeimEntryPoint.h | 1 + MdePkg/Include/Library/UefiApplicationEntryPoint.h | 1 + MdePkg/Include/Library/UefiDriverEntryPoint.h | 1 + MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c | 1 + MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c | 1 + MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c | 1 + MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c | 1 + MdePkg/Library/UefiDriverEntryPoint/DriverEntryPoint.c | 1 + 10 files changed, 10 insertions(+) diff --git a/MdePkg/Include/Library/DxeCoreEntryPoint.h b/MdePkg/Include/Li= brary/DxeCoreEntryPoint.h index acf514a61665..a90b6b41d9dc 100644 --- a/MdePkg/Include/Library/DxeCoreEntryPoint.h +++ b/MdePkg/Include/Library/DxeCoreEntryPoint.h @@ -35,6 +35,7 @@ extern VOID *gHobList; **/ VOID EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN VOID *HobStart ); diff --git a/MdePkg/Include/Library/PeiCoreEntryPoint.h b/MdePkg/Include/Li= brary/PeiCoreEntryPoint.h index 7485f7a40e98..8601a0b106e6 100644 --- a/MdePkg/Include/Library/PeiCoreEntryPoint.h +++ b/MdePkg/Include/Library/PeiCoreEntryPoint.h @@ -47,6 +47,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. **/ VOID EFIAPI=20 +EFI_ENTRYPOINT _ModuleEntryPoint( IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData, IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList diff --git a/MdePkg/Include/Library/PeimEntryPoint.h b/MdePkg/Include/Libra= ry/PeimEntryPoint.h index f4b752ef9609..b8b2928b087c 100644 --- a/MdePkg/Include/Library/PeimEntryPoint.h +++ b/MdePkg/Include/Library/PeimEntryPoint.h @@ -36,6 +36,7 @@ extern CONST UINT32 _gPeimRevision; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices diff --git a/MdePkg/Include/Library/UefiApplicationEntryPoint.h b/MdePkg/In= clude/Library/UefiApplicationEntryPoint.h index ec568ab6c5ad..9fe54aceceee 100644 --- a/MdePkg/Include/Library/UefiApplicationEntryPoint.h +++ b/MdePkg/Include/Library/UefiApplicationEntryPoint.h @@ -40,6 +40,7 @@ extern CONST UINT32 _gUefiDriverRevision; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/MdePkg/Include/Library/UefiDriverEntryPoint.h b/MdePkg/Include= /Library/UefiDriverEntryPoint.h index f9d9befb9c12..107b6e45bd6e 100644 --- a/MdePkg/Include/Library/UefiDriverEntryPoint.h +++ b/MdePkg/Include/Library/UefiDriverEntryPoint.h @@ -57,6 +57,7 @@ extern CONST UINT8 _gDriverUnloadImage= Count; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c b/MdePkg/= Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c index d3d8c4c47c51..ea71ab8d8eb6 100644 --- a/MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c +++ b/MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c @@ -39,6 +39,7 @@ VOID *gHobList =3D NULL; **/ VOID EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN VOID *HobStart ) diff --git a/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c b/MdePkg/= Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c index 5662ccff15f0..eef27651c35a 100644 --- a/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c +++ b/MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.c @@ -56,6 +56,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. **/ VOID EFIAPI=20 +EFI_ENTRYPOINT _ModuleEntryPoint( IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData, IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList diff --git a/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c b/MdePkg/Librar= y/PeimEntryPoint/PeimEntryPoint.c index 83a1bd8ccc32..201445ed69a8 100644 --- a/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c +++ b/MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c @@ -34,6 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices diff --git a/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint= .c b/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c index dc05b23fd823..a7cdbfa13d89 100644 --- a/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c +++ b/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c @@ -38,6 +38,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/MdePkg/Library/UefiDriverEntryPoint/DriverEntryPoint.c b/MdePk= g/Library/UefiDriverEntryPoint/DriverEntryPoint.c index f5da5ac4ad10..a14874df2bea 100644 --- a/MdePkg/Library/UefiDriverEntryPoint/DriverEntryPoint.c +++ b/MdePkg/Library/UefiDriverEntryPoint/DriverEntryPoint.c @@ -92,6 +92,7 @@ _DriverUnloadHandler ( **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1528817047274945.3959300265319; Tue, 12 Jun 2018 08:24:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3E06421295CAD; Tue, 12 Jun 2018 08:23:41 -0700 (PDT) Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (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 DA07721295C8D for ; Tue, 12 Jun 2018 08:23:38 -0700 (PDT) Received: by mail-wr0-x242.google.com with SMTP id d2-v6so24512315wrm.10 for ; Tue, 12 Jun 2018 08:23:38 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:36 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=FSIDWkGN5EBSSHIo2LI7ekK0kzVs8rHKoszgLSOpSNo=; b=XiioxAQ/vz546X4Nt2IIsO/oaF9RUJTDbBkl9yIdUr6Eq1rmYIMlucSVJqJBlznqnB htvir9ADIzfDzxSyPth8MmQov8ZkUkrg7CwILCIcP+M73aRsHssB7SwX5jMiqhDQw0Zj 4C+CBY+EpTMjUub9s+zX7YJwwz7qWyuxr85Q8= 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=FSIDWkGN5EBSSHIo2LI7ekK0kzVs8rHKoszgLSOpSNo=; b=IcuPju10Nc6gzlhBIttr3iKWbIvvD8sOtsNY1t5m2KT3uWPHEH2CWyLBscwqNsYSHD aaCGFILN5gfHXGhCtIRHPKhRrHEK4JPZ5BovaYkj+Py92BmSOrTqqPneDl6pUKaJPsOG 7t6Kbl+VVaSaRyI+J590eEiHr6+Afqu0mNWPnxL4HgT9i2TVf7EoBSRcOQ6aCYRtMMY/ z+iAUkjpp5kIaYsLEKGMlog3Chihopo1RCHE9ivbqkcdad3q2G2tV671HGMqDWhFQYYo JFGDI1rmL5o18Gz4wTmJ5iYoD7SOnDWfL0BIv7ck5WwjSY3wZYL+0K4hPYOHCcGCZJDI zEvA== X-Gm-Message-State: APt69E1H7eksJDYkj4t7e3gsGvxPH8YFVeG82ouj19EDe2S6UW0l1W8c w/DCrmR1T8eNrF0vU+wkvALO60mhxd4= X-Google-Smtp-Source: ADUXVKJbIQhFjvd9fUwZdxjk97qoq+IunC6vzZj8IvCUdkpqaOv7BcFdSQqPJIxHVz+SgSCTCyfbsQ== X-Received: by 2002:adf:b053:: with SMTP id g19-v6mr678647wra.128.1528817017051; Tue, 12 Jun 2018 08:23:37 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:04 +0200 Message-Id: <20180612152306.25998-10-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 09/11] Nt32Pkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Nt32Pkg/Sec/SecMain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Nt32Pkg/Sec/SecMain.c b/Nt32Pkg/Sec/SecMain.c index 74871a67c8ca..e9583504d153 100644 --- a/Nt32Pkg/Sec/SecMain.c +++ b/Nt32Pkg/Sec/SecMain.c @@ -1087,6 +1087,7 @@ SecNt32PeCoffRelocateImage ( =20 =20 VOID +EFI_ENTRYPOINT _ModuleEntryPoint ( VOID ) --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 15288170517675.292200922717484; Tue, 12 Jun 2018 08:24:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6D7DE21295CAC; Tue, 12 Jun 2018 08:23:41 -0700 (PDT) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 0C0422128E2C2 for ; Tue, 12 Jun 2018 08:23:39 -0700 (PDT) Received: by mail-wr0-x241.google.com with SMTP id k16-v6so24559984wro.0 for ; Tue, 12 Jun 2018 08:23:39 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:37 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=A3uTU6Tec3MitOciB5dR5kXrKLibUX1PgLbSacdrm/A=; b=iSQgfxyowoo2F2EhTbb2/jalNRCiChRGHWFb1rtQpYKisS3ActQOcgMw4I0XSaWdlf oICdHxY5RDf3IjvasSpeTK8Px1dBgJyFIzwj1HhFV44YuWnI6YDbNsPM1KbPrRE/TP6z PkJk+wDr6VLMc/P/yYiy+BlludRj7yAAkkqvc= 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=A3uTU6Tec3MitOciB5dR5kXrKLibUX1PgLbSacdrm/A=; b=F1hFK+W2dRd5x9j3LxiU+scaV8SfP25XGm0laO0n7j7uOCoe22ypxikEMNq3ccdJJS X8/RPt6+Hh2UOb5ma9nlj/36WK2AgFyWk2iZzYTaGIZgmzcjtRvXgSGjmGrgu8JPItKg Xpgku/ioHwCoCV/hEd9GyFYJlGwzDaxbQLDqTwoFboZLgTONa41W4pwYtcgseMAhBf8p 9hTrAmp/i5n5iwNF1FnbbnTdXlmdzR+3ie0WSI2Tdqg03sIsgjb0z22TZC5/36FEWZIs Q/3Xhc7IqlRyPYFxCxOvxML9JK/h3A+iH1Fi+AlmMuuclovyvk9cga1DX+kJNe+bxB64 TTWQ== X-Gm-Message-State: APt69E1yYEPpjeLdPFnmSbtxqJ6BOvdvu0AVyjnEr7O8nUnYU/D48hG6 E8ANiF34Bdi7w9YHsXFl8/oIAPlm7tE= X-Google-Smtp-Source: ADUXVKJfR6LMF5ZGRTcJA9mL9SUrwj8U3riO9HnQ8JhAtuoX0XxV0HgxbTohjG3+OmQ9cX8+t65RzA== X-Received: by 2002:adf:de08:: with SMTP id b8-v6mr655080wrm.39.1528817018416; Tue, 12 Jun 2018 08:23:38 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:05 +0200 Message-Id: <20180612152306.25998-11-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 10/11] UefiCpuPkg: annotate module entry points with EFI_ENTRYPOINT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c | 1 + 1 file changed, 1 insertion(+) diff --git a/UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c b/U= efiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c index ad3e9090c63f..3ca9ac64a0f8 100644 --- a/UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c +++ b/UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c @@ -82,6 +82,7 @@ SecPlatformDisableTemporaryMemory ( **/ VOID EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( VOID ) --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Thu Apr 25 17:40:16 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 152881705705817.016401183574317; Tue, 12 Jun 2018 08:24:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 94DE721295CB2; Tue, 12 Jun 2018 08:23:42 -0700 (PDT) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (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 7BE7E21295CB2 for ; Tue, 12 Jun 2018 08:23:41 -0700 (PDT) Received: by mail-wm0-x22b.google.com with SMTP id e16-v6so21288855wmd.0 for ; Tue, 12 Jun 2018 08:23:41 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:3c84:18ae:27f2:d03]) by smtp.gmail.com with ESMTPSA id e2-v6sm500983wro.97.2018.06.12.08.23.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:38 -0700 (PDT) X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::22b; helo=mail-wm0-x22b.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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=l0vlCCucNOK9ayAX59EvpjIqjByCrKqyJoU8qyQROEs=; b=fhsmiN/p8/ZSGluUwKhHdFPEgvrnraqRh/qWjOUEOpNVMd7PuCi3B4dlfY2+xZPR8x D1UHB6cxaPDBMMLFe3qpAmutBRNul+HBS7BLWLI8BmCCoU/0w3TA3eodZiv8qs/ukMW5 4bFE/3B5komxkg5lizkvJXffPJhnzGZsJMQIM= 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=l0vlCCucNOK9ayAX59EvpjIqjByCrKqyJoU8qyQROEs=; b=AzCV/h9BIR/nharepxtrAIVLOWiTRawe+Z2d7mgc9k+jwEoFpLRgFAt81+7KtUV4FV +rC4grSWAQlifQWlPXYoCEAZGOon9PIoC9wlhOc2abOPZzdETI7YW57K4QWmyqTKdD+N bHDZ5bsuIJRh6V3GeSEXZKgkVzrPmRjswiWhKyfCjcwnxBqftZF/w5iGHphl9s64zI45 173QDmpQVOgMm1RNH7de8O+bOtSiaLugmImosRJlCZz28fwlbhw6Q1ZvGjthTu/AC1NJ 2nhcQ3FeE+otlAUcYfZR++qNQcqmoK0ihvlHJpW7eJIcK3skX+XZvo8AUOF0dc2d/MAo Z/3w== X-Gm-Message-State: APt69E2kKFaA+OqCy793ps5wtHp3FnFE1DxorV1E/E+fic0oL71etP0k /tTiVt1VAeSLsei9lViyDTpg0Kl5e+Q= X-Google-Smtp-Source: ADUXVKIgH7Y/FP28dbRu0SJUtwwKgmzQ/oyBsJvG3wsLw18t/xEhjSskw2x0NL3ZkRGj62TCltB+cw== X-Received: by 2002:a1c:3fc2:: with SMTP id m185-v6mr538995wma.37.1528817019694; Tue, 12 Jun 2018 08:23:39 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 12 Jun 2018 17:23:06 +0200 Message-Id: <20180612152306.25998-12-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612152306.25998-1-ard.biesheuvel@linaro.org> References: <20180612152306.25998-1-ard.biesheuvel@linaro.org> Subject: [edk2] [RFC PATCH 11/11] MdePkg/ProcessorBind.h X64: drop non-LTO limitation on visiblity override X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ruiyu Ni , Eric Dong , Ard Biesheuvel , Hao Wu , Jordan Justen , Andrew Fish , Leif Lindholm , Liming Gao , Zenith432 , Michael D Kinney , Laszlo Ersek , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" When LTO is in effect, overriding the symbol visibility to 'hidden' using a GCC pragma used to result in module entry points being discarded, and along with them all other code in the binary. Now that we annotated all module entry points explicitly as having 'default' visibility, this is no longer the case, and we can drop this restriction. This prevents GCC's LTO code generator from emitting GOT based relocations that are non-trivial to deal with in GenFw. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdePkg/Include/X64/ProcessorBind.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/Proces= sorBind.h index 38ef2665390f..7f78489bc2c4 100644 --- a/MdePkg/Include/X64/ProcessorBind.h +++ b/MdePkg/Include/X64/ProcessorBind.h @@ -27,18 +27,24 @@ #pragma pack() #endif =20 -#if defined(__GNUC__) && defined(__pic__) && !defined(USING_LTO) +#if defined(__GNUC__) && defined(__pic__) // // Mark all symbol declarations and references as hidden, meaning they will // not be subject to symbol preemption. This allows the compiler to refer = to // symbols directly using relative references rather than via the GOT, whi= ch // contains absolute symbol addresses that are subject to runtime relocati= on. // -// The LTO linker will not emit GOT based relocations when all symbol -// references can be resolved locally, and so there is no need to set the -// pragma in that case (and doing so will cause other issues). -// #pragma GCC visibility push (hidden) + +// +// When LTO is in effect, symbols with hidden visibility will get discarde= d, +// since by definition, they cannot be referenced externally, even if they +// are the entry point of the executable. So we will have to change the +// visibility back to 'default' explicitly for all such entry points. +// +#ifdef USING_LTO +#define EFI_ENTRYPOINT __attribute__((__visibility__("default"))) +#endif #endif =20 #if defined(__INTEL_COMPILER) --=20 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel