From patchwork Tue Jun 12 15:22:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138364 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5490839lji; Tue, 12 Jun 2018 08:23:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLEno/fTxn9d4EXQ2r2Q/kIwLy8jYc3p9tYwxqKGoLTy8HLVbEIRLuBIK0ks1enHhiM0WD1 X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr941551plb.24.1528817027298; Tue, 12 Jun 2018 08:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817027; cv=none; d=google.com; s=arc-20160816; b=ulQLLdvVhdMEdEVE/BhLWcGSz98vBNPswDtJTvPPKnyWUhZXeBwu31SGMDmCv4iPaa 18fQhFoHE2s7AYH0oIrjA1PrZmDRL28sjCFzNbd4SNggEZ7W8CSlYbPDBkwFxS2fx3OR n9VlkWUAlvLBXo9StRp+N3AgcCD1HGDAXiOFfmUljwEmiR3IAh4V+xwk9D5EIoCeX7TZ ugCcLtbCiz1l2fwjU1Fr4jHVL3Wrmp8kuOxqzNp7dgH4TIQoep7pRBk7hMo5kWvDnY/K mCvoDIhdeG7NSMerWUjOYZjfPKdH5kRReqCLaqDZqoGNX8EM2W1MWizHH5y8J8CkvYlf 3fCw== 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=smZcR537/YENpQNauvh/cCxo4yEf1g08RFFomdxnRFI=; b=nr52YuMMget41jbQU72wtZ+d1sdysZYrBMoENxHSO3Ws7PeYfvk8jLDRVY9Yxm7XKN EanjHsufpkRUVRAmgJKvgFkUl1UdkQhwQHZyjPkb6vY6Ym9LuItW993S9sTwg6868BlW fBiE/U7nQJSSDiBoN7hkkhtZZxGlojKSL4OvhPZMxlFumI7AWULJOL+jQG55U8sjyvqo Wt9xj6yNb/nmEZiHQ12BrbVRbYkmeC8z1CJbM2SM0K2O8HSQNpEFpI/Blky7R01Eb59P evvmOHp+sR479IQClFQcE9khAjcZIyuhAS7fxCPZAaR0391l+UeSztbPiMtkDpWHdwtk glyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AOmAIs+y; 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 r28-v6si378871pfe.168.2018.06.12.08.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:47 -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.s=google header.b=AOmAIs+y; 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 067E821295B38; Tue, 12 Jun 2018 08:23:32 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.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 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) 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-Received: by 2002:adf:bc03:: with SMTP id s3-v6mr699373wrg.211.1528817008878; Tue, 12 Jun 2018 08:23:28 -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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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/EdkIIGlueDxeDriverEntryPoint.c | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGluePeimEntryPoint.c | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueSmmDriverEntryPoint.c | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDxeSmmDriverEntryPoint.h | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.h | 1 + EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverEntryPoint.h | 1 + 6 files changed, 6 insertions(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueDxeDriverEntryPoint.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueDxeDriverEntryPoint.c index 2b71b1ad42ee..03100f15014f 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueDxeDriverEntryPoint.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueDxeDriverEntryPoint.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/EntryPoints/EdkIIGluePeimEntryPoint.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGluePeimEntryPoint.c index 3a9ed9b4b5fe..a88915a403b8 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGluePeimEntryPoint.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGluePeimEntryPoint.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/EntryPoints/EdkIIGlueSmmDriverEntryPoint.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueSmmDriverEntryPoint.c index 954f7e9c39da..b66e87d87b8e 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueSmmDriverEntryPoint.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/EntryPoints/EdkIIGlueSmmDriverEntryPoint.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/Library/EdkIIGlueDxeSmmDriverEntryPoint.h b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDxeSmmDriverEntryPoint.h index 4a04b9909888..c1c078c4e07b 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDxeSmmDriverEntryPoint.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueDxeSmmDriverEntryPoint.h @@ -49,6 +49,7 @@ extern const UINT8 _gDriverUnloadImageCount; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.h b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.h index 537d3951e1fd..461c0e4874ae 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeimEntryPoint.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/Library/EdkIIGlueUefiDriverEntryPoint.h b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverEntryPoint.h index 07a7775abc46..f17aefaf48e7 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverEntryPoint.h +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverEntryPoint.h @@ -60,6 +60,7 @@ extern const EFI_EVENT_NOTIFY _gDriverSetVirtualAddressMapEvent[]; **/ EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable