From patchwork Tue Jun 12 15:22:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138361 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5490585lji; Tue, 12 Jun 2018 08:23:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI+QrWg7JVJE0iu5dywoGYQI7QldRYsDmczMgUctfZXNZK5iPzU6aVQ5x8dZdrKG0kVVA/F X-Received: by 2002:a63:5fc1:: with SMTP id t184-v6mr743157pgb.132.1528817010990; Tue, 12 Jun 2018 08:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817010; cv=none; d=google.com; s=arc-20160816; b=sTTvEylGdiPaX4HjScNxsPns6vOs1H+ax7jzlDPKa2tTW3SH9XzhbzEzZoxX/5OBLr wgF6nY744/jfpRb0DFp43z9pjD+LAqACviL/LyQvyjqZ0qTWbbY95OzCVsw40WDPa0P8 naEBPhyc5iunDtWHhqBuCZ7Ts8eDg9YBc4fRlqBX/68fZvH7dqQYAL6wlVCriE9a3Tbn mk4Xq9ROj7Q40KKPRdQb/unvd1E9YtM1watGRdQvtf59IsvvSi3WTNU/pRRnllQ0qrGa zN4GonFvYtPoDbzb/fZss8Yql8NKzsFt7DYTFqOb9EGZ0v+9bCl/B5sVkioVd8iN7zw/ KK9Q== 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=JIc2CUVgF8mu2Xqo76vNMnnFvAF2f6oy8o1ruErfW7Q=; b=FZLaDA68PODDtnt4xaNAdc0cOMLj65rdDYfjlxrNxBUiOV0jMUOwSWvzDc21qNw371 gvWNnOIPY1j7HNLKhdkONPH/bsRt4kK4I2lJ6IZuIedgDHN+7PGpDJZHvwd4C7ldvdTa fjP1Ilg1/XVpR33MdjTsO9Q5zPQvpGI57+nXy1C7NzOGCHD46/NaduY6pKSaoGoXVgGt vjNW8WY+4tKuGqc4tNmzib1mo/tPxfDxmTfiMzNqFvJviGAeEhoB7MwWpbDQK8cD20ew thhV7edJ+J4Hver2uEd7rQcA4+023DfXxRj+x47fSMh5XkDZUcPfzMmFG2YZiXhjD35o ywOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Q6hdJHyt; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id b26-v6si352959pff.278.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) 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 header.s=google header.b=Q6hdJHyt; 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 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 962C621295B29; Tue, 12 Jun 2018 08:23:30 -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:c09::242; helo=mail-wm0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:a1c:f45:: with SMTP id 66-v6mr565986wmp.124.1528817006369; Tue, 12 Jun 2018 08:23:26 -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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 +#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. From patchwork Tue Jun 12 15:22:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138363 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5490780lji; Tue, 12 Jun 2018 08:23:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI4rRGMSUGkAHkUQ0i47GRJuwZ3sGbuamqZk5eXrplVb2MdBysmAonkDMgrquegKTc6p6WG X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr938293plb.266.1528817023708; Tue, 12 Jun 2018 08:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817023; cv=none; d=google.com; s=arc-20160816; b=zOhILgmzjRFpxJvCeg9noPQVGKk3j9GsVjkn20i5cZow1vRmbKCaBk0GQvQZThW4fl 1jg1lqrehRx4pPZj61aXPeR35ag3T7WXDM8tIWqmhqZpohICzhHGEvYzXCH/om/8uZP/ DDionO43NO8yi0tJIuvvPGyjDi6xfRmllYFELul/fAqVMWlAB+XcydIBC5Z/xKw14M2Y BQ7L3V6O5xzXlWUlX+rnxqMhddIBji6J3q5BppAxEwpXaBtuPl2JGGOrO1L2o062y6go o//10a1F7X9cRMx7U0mQN/nX10rFZTjbswOSYIMMMPulsrxZfjBcw9j1U+nNlqLvSneR +Tuw== 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=zUo24xokx7Ws0RE3FFnM3HplJZQlM3s7QrM77Q1rYao=; b=UIUiMzhKpN8V1AjlDDo46Gs56Z30xspjFKoVt6zycFttELkIOStaV/CVmtcE9Wmog9 O3cCsr7YOPr7GpuhpNImpRsXcI9zTPvPWOBWaL15o1Ur/GoT2scpeOOQ+3jKB85zZ+Gt KkQzm7c/Zqr4Q8A6N9kzKttwxCxAOw5dzLndbMjrSU3rHLfPVu9HgczicJwN84mUStk3 QtYJnJu9e85y+Yxzk9C8VCZNyvUJsTC9LHoW8OEedd86fA4OQe7b3ItSl9IIq4Mf3k7O nUo1w7VAK48qWOLQp1bAjndxnsk7CuYVV6he13gRxlka08eo5iucSm8KRellDg7qO3VP 1HCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bMOAvLL9; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id k24-v6si353895pff.91.2018.06.12.08.23.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:43 -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 header.s=google header.b=bMOAvLL9; 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 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 BFE2221295B2F; Tue, 12 Jun 2018 08:23:30 -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:c09::231; helo=mail-wm0-x231.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:a1c:852:: with SMTP id 79-v6mr536407wmi.115.1528817007670; 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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); 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: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 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 --- DuetPkg/DxeIpl/DxeInit.c | 1 + DuetPkg/EfiLdr/EfiLoader.c | 1 + 2 files changed, 2 insertions(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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: 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'); EFI_STATUS EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( UINT32 BiosMemoryMapBaseAddress ) 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 From patchwork Tue Jun 12 15:22:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138362 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5490773lji; Tue, 12 Jun 2018 08:23:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLGbiKNKDd+qk6vXnOEjbo0iGAfKQjI+3f8wQIRu8XoKHb4Rj1xMbmf73npZ4pp2YBglSXA X-Received: by 2002:a65:644f:: with SMTP id s15-v6mr733696pgv.228.1528817022658; Tue, 12 Jun 2018 08:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817022; cv=none; d=google.com; s=arc-20160816; b=yMYlWN488ZZfKtlbmO+u+1ys830eMtMf/uG7yxt1FbOXUqvsoH5zGl+leFlL3ke0YV 7L7gsIVwRp00++vzFIDdear1BglNbS45lSnaxo8b7GBpfyqxjKZtH0EAXFKyPk+y5EjR OSz9Id0cXiJuS9IrTlbgbOcSnTC6kFxUX0i0K94WCqyDGml5Q/LQ71szniQXmpDWwmwa xkZrVKQ9FihL3rIfARkX377uklbkH6NqpG+PqUyvSTYlP7hBvFrVKpe2NTBAxuz8kuOo iMJzt7iWUJFpygmuag/xJs6N/COJGg6OnPygOX1+Dg+CyR5LVyCqUefhCLe+sj/9qlvC V8Jw== 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=QZqRaPR8MPd7XzGl5Fw9il7qjWIKvKw/oUomzGPr0oI=; b=KXWRsD+d5M2jxuyVMSW77bg+8jtOi6Dc2GXHQS9VqmSxlGTYVHjyvmnyWgx5mojZPu 7KZvw2ovXtPPS68Lnjd7dLbZXKTtabOwj8tyDiNip0hz/4SPHJmG9Df8Xvx6uzcHCJxs /j8vLBzu5XX3P0NV6/ARqJ4QjnGJX2ceCrtsNUY0dqv78wMELxG9k90PjAuMze2+d74b XLUT1L+bDjabszPm5lkgL7KDNi+xzf/7/LG+ZlZRLbn22z9NT5/NQo9DuGgXCO2y/Mcd EStzIzPESnQCh5nmWAr50NVQDl9e38tWOL9lqCe9dIP45Niuy8qbE8cL+dDNEkT43oRG W9tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eWfdcZjZ; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id g1-v6si381856pld.11.2018.06.12.08.23.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:42 -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 header.s=google header.b=eWfdcZjZ; 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 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 3375A21295B27; Tue, 12 Jun 2018 08:23:33 -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::244; helo=mail-wr0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:adf:8af5:: with SMTP id z50-v6mr671724wrz.22.1528817010204; 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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:29 -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 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 --- EmbeddedPkg/TemplateSec/TemplateSec.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/TemplateSec/TemplateSec.c b/EmbeddedPkg/TemplateSec/TemplateSec.c index c63adbb6f90f..09bc779aced3 100644 --- a/EmbeddedPkg/TemplateSec/TemplateSec.c +++ b/EmbeddedPkg/TemplateSec/TemplateSec.c @@ -21,6 +21,7 @@ #include VOID +EFI_ENTRYPOINT _ModuleEntryPoint ( VOID ) From patchwork Tue Jun 12 15:23:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138365 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5490973lji; Tue, 12 Jun 2018 08:23:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIzovJuxLM846DEvOajiQwQptu1WtYLa8DBOE0CNamvwLOyML1vw6EJmE9Sk+tLVCoUxjDy X-Received: by 2002:a62:d146:: with SMTP id t6-v6mr856321pfl.127.1528817034655; Tue, 12 Jun 2018 08:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817034; cv=none; d=google.com; s=arc-20160816; b=aQi+GdFAe0SMwmuqpxXIv1wyMyCaTtMBdnCjnKIjuRWtyPFCXLFeqBV0O4bhct73Cg a3D+MQpiMr3yxCugmXO9zQ4sf55/2/W6Gw7wFFPUqYB8IQEylzKdXnlzMaMR1C8FLQM0 S7RSLkXd91oTYF9aNTE+GNsDf+2go9Qg4Rw3NilUYHas7qW0cuUhwbqODwoavqg1upoo WCgldjKxivUf02mtZHKb1b/X+PqDTcfqEM8bd/KjFyam+TMQ/DIV09tV3e/XXCxGxrOH Xy1DPz9M9gEAyOiY804ObAjXcOjh8oZU6P73ChAegdS7YygrVvYsKZkuJVTfFxHZ2dxg 9cug== 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=GoHqH0wXMliJlnQVTFMLPes85yONwhL2/ax4UpEiEJc=; b=y2imW1DEB55+fXYMNjTeUzLOs/qHFgZ1kx9siiQTSdPj3JKgKSTU5nWVO6uCeWe38x Bf0md9weAyKI8yXIC+bi1fmwi8AIYNutpyjMrapqJ8pUgSNw2ZrRz3FvuIuowPKYJeVt 4Zi0Su3sFdZZkW/47fgMF1fESj11CNsLPf6rDdCp9mLalxopp+6F/bAVJBa5znLo8S8b BTEEiO4QwGOXaCM8ehSX/HkONVyOpHQCRRxr7zLEtpvU4fvi2F2EUKkwn2O0VK4iE6mE /zN4WW3VTdkqvv4JnYrv6lF6QUwKbMCi7d4gUC+g6ANdXr8NHOfvrCEugRI7fPC99cum 1Q8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Tzzmx94F; 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 6-v6si365054pfb.204.2018.06.12.08.23.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:54 -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=Tzzmx94F; 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 5B81321295C85; Tue, 12 Jun 2018 08:23:34 -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::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:adf:8023:: with SMTP id 32-v6mr666733wrk.243.1528817011635; 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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:30 -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 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 --- EmulatorPkg/Sec/Sec.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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[] = { **/ VOID EFIAPI +EFI_ENTRYPOINT _ModuleEntryPoint ( IN EFI_SEC_PEI_HAND_OFF *SecCoreData, IN EFI_PEI_PPI_DESCRIPTOR *PpiList From patchwork Tue Jun 12 15:23:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138366 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5491092lji; Tue, 12 Jun 2018 08:23:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLHcDfzi8sgpwXZRbbJZ8JKDkNXjxYGTbd+W/htiEc8TOiHpwKa4OX9VueactUJcEn4CLvn X-Received: by 2002:a63:7a07:: with SMTP id v7-v6mr702661pgc.444.1528817039542; Tue, 12 Jun 2018 08:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817039; cv=none; d=google.com; s=arc-20160816; b=xibi8NpPKYtYW4wqHvfnqsJJ4whX0NLSWcqamRz7fjmiDV+4qNIxazge5wcdSjqLHz /7zyw0euhLkV0XSYJ/FdB+Lrthp+RFj5UcUbuYfhJ0rk0LYoSTOAdneK24apv3rxdlq3 XpFmbiS9v5sDc97z8NWFoG9WVux/Zf4D8YHQqSJlFqs5V0ABq9um2G/YdQdngWvcjhK3 PmQ5/ZhjWCz6iKbU6Ms/rRThssIvksWaaXymVAUllSyaI5djBoB+EtjOrLXoI06VcgsR fRXwE3Tsn4QoZk+0pAM5b/ZDjgMeLFLnXfNJIxvrJXXU9jdtcHbsOHw2LvznAR1bvMN3 4yFw== 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=lR+AUzhd2ajdadkQxTvhU8O2I49MyQT027rIJlXhil4=; b=xhgDABDMWQjNPDYcuEwXFWNMo59oHKZdW7y7TEnnVspoPNLcOjwae94yBTQ4Un5VFg xYyJOEFA05nWe8ERjKs91dwgbn56KdRclihhTErwQqkPBn8t0c9PLqIvrmWibCmhHJBh YhJ31Irk+INCNH7sIy5qjJWFXhikK2DQFnQrPYCj3cbOAzrVo3IXfj+RgH4OG5rrZG7Z OxjRLCiCKz3NWzqPL2oW7ZzXmsm9WMg9OPcfb/EjkP7VwafLoihYnXjmXle4nSj9RQwq E1wa73SiJi8qf4lpIwv2mHACpd5PCOil17Fyl7hOWBMtx2y4RInDxwmEhAM5D5lEyVyC A6bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="HbOJ4Dp/"; 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 z9-v6si375608pln.250.2018.06.12.08.23.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:59 -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="HbOJ4Dp/"; 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 857B421295B3B; Tue, 12 Jun 2018 08:23:36 -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::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:adf:a032:: with SMTP id k47-v6mr665844wrk.202.1528817012941; Tue, 12 Jun 2018 08:23:32 -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) 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 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 --- IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DriverEntryPoint.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 From patchwork Tue Jun 12 15:23:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138367 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5491215lji; Tue, 12 Jun 2018 08:24:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJD/ZgfvouUbfv+wgS3VgrEgX6gQAOIYWRMW6NIoJb+eOq9iuTbB8f+lRPB3v80GRdXaFpu X-Received: by 2002:a17:902:b786:: with SMTP id e6-v6mr908400pls.260.1528817045256; Tue, 12 Jun 2018 08:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817045; cv=none; d=google.com; s=arc-20160816; b=HGzpeo0aFguO79Kg0YZCFx2xGQQWHVIEeECK4h27+jHwWcQkNIkUqydE4azr9wDhTe 0Z5mSSjZxpju/iB3nEJtmtFhtElCWnNxa5CPbtqhDx1QVWWq8jcj+pcSANlxcU0xHPd0 Z/jMWKuiEHtBPIo2XdQ42YSxwHDi75kGQ0sIsgISw6L06C8ZW/3wFgeUGp6JTCV9kRWM CZF0xC0b1PUyX+J9Jgp1yj0BxBy2hjcDBGnTBcRa6my4i5JtO8XhAN9UH+umyDBQEB8J DhVy3IRgosBigqiOVnzTIfFzYZkTpz79wRnebIu8r2KbA6rHfbfKkFDsxKcsC6twDaQ0 PQeQ== 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=2IPedqpZnQEaFkzOlja99bqbntb1kmskhJ21RCZWpgE=; b=t5ylU1my0hjLagJJpXNJT/zEgF2/eDGq3Sfn62rVQYrsnVnG1IrqZv7lrm/O71Vyon wlsSMN6RN4DTnwvhTZVcHsicJ2BmFpADjWOvig4/O+qBxZ6/taQlKgfIit4g6gvx+imd l8pr/oTlEnAUFGYYAaBgruIUZVCbTp0Xh8JtNIlQkqA3oSW+6qp8JfQwRmlTES5Lr/jD jtfCLiBmxZsSqVSICj6BqoPBoRNKOglTAV0ltarempyhwEGWkoLhxQV/sPwGsxPqQuIz WhYghiKjt+xoyFpHQRGTx9Z5jnVmkFfGfzBbfhczPKiJkHw7wy0lt3p0chdFsNlRePh4 q2Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jqppZbB2; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id m37-v6si344114plg.491.2018.06.12.08.23.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:24:05 -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 header.s=google header.b=jqppZbB2; 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 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 B12F121295C90; Tue, 12 Jun 2018 08:23:37 -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:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:a1c:f308:: with SMTP id q8-v6mr571391wmq.6.1528817014257; 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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:33 -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 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 --- MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c b/MdeModulePkg/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 From patchwork Tue Jun 12 15:23:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138368 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5491320lji; Tue, 12 Jun 2018 08:24:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKZGiMUJn+A+C+xG4X8D2t4jvZanNDsJE9Ej2E/c/ox4Gh1nV426Zb4iU8XEW3EKNiYRu0l X-Received: by 2002:a63:7b51:: with SMTP id k17-v6mr703921pgn.55.1528817050952; Tue, 12 Jun 2018 08:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817050; cv=none; d=google.com; s=arc-20160816; b=q5LR0Acs7PDnJBJy064OO8okbQ4kPa6Gkvia/EDPvFUW8MXpOJyP3imUjcdwTiiFRN LAWeCbBwjIRmRSsyd64vOcjlq+0ttSp1Zxa7mZnIiXUfvkPwvMCRtA1Ku3OzlGgfWW4S efJDbDIeB6HDhEa3pJTHJgyCaFrltuT+ikUoQYVvx0PO+Ioi257/ZRlZcoS4aGrObhWA Jt6MJLbzQffVy8hWRhDfts+P9DTTtXJJLV3qjY71UrjFECdtsAMEk6308Ti5u024oEhw rnQcEUxTWlzg7w0+tingXruicjY4gjqluY5nEFTKz6YdG/hy3ivQV2Y0foBEilhP3te1 c1mQ== 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=RLUY8mnVzrA1dNccCsPHf5EKuaC10QK/0lEFEZmj7Js=; b=GCWgMeH22G0/4qM+RJjcRTHRfOTOGlpYJrdViXDpz7rMJDaA5cwEzu4cGXcodFWH9K bJtCd9gx8uF89qIZ7CW3RHDZb9PYll8wvnuy5KA1q6LyaREYMMDme7TeoIubdQn2nee2 3BF9FGNsmAEIjdfflLn40ytVqXY7w8EFytRCz1VltFAQ5w/yvPCT//ioI1o9DWhmM/ib hbvtQbNtkUeZqyhKDxaQ4F2X1k4RHCQFsuXpdSnnTzdBSLx0GATlOGLLwNno5Ap4Vyda Yz1NrqIThveD/Ni5dsgYGKxiLCo4SVPJEwQEeOJhltosAV56DDLLYbS4czV3Xe2sBXA3 mYRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=L5OGlwsk; 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 cf13-v6si407975plb.175.2018.06.12.08.24.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:24:10 -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=L5OGlwsk; 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 130C321295CA6; Tue, 12 Jun 2018 08:23:39 -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::236; helo=mail-wr0-x236.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:adf:a54a:: with SMTP id j10-v6mr709832wrb.155.1528817015592; 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.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); 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: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 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 --- 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(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdePkg/Include/Library/DxeCoreEntryPoint.h b/MdePkg/Include/Library/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/Library/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 +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/Library/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/Include/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 _gDriverUnloadImageCount; **/ 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 = 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 +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/Library/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/MdePkg/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 From patchwork Tue Jun 12 15:23:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138369 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5491383lji; Tue, 12 Jun 2018 08:24:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIULlpr4GaxklZHwOjF+ap1clI7d7Rf7nkyqfp/MiG5x/W3urOAiFaUbi9XW3GL3+JQjeEz X-Received: by 2002:a62:cd82:: with SMTP id o124-v6mr868479pfg.250.1528817054728; Tue, 12 Jun 2018 08:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817054; cv=none; d=google.com; s=arc-20160816; b=WQxILgXwV5L8R5jXUOBmi8g3t5MxjIxVUaFwQYJQfqKcCkBrUcaUfaEKICqsTs3VNI TkaUekEoTSN3y/hSwZmPXdMvh3hxOyA/0C2zXxeaI0UrBos8hkuNomgkn8TzB6UMVwsG TQydfQRgMgXBdKOEoPSDAJPQSch7Z4WWO7hTEAaRSLsjue8kif3xg2egcqTnkhTJwaBa f504+MP5MY061wWNZmARWv+d5YXjdCDaUzV+WZ32AtuYNyWQkNRggowW5oNOyOWzIEzz htVeMUyDoVWmXiJf0Cy19vBWo8LEp0ZXkRlyvltuT6tjwea42wxc9RgPItbTOsGHEmJz OETA== 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=MsncIHqZ2CLsWl7ChmR9jvhUmIre60LcdzpCHBwM1YI=; b=HsC65+kllIQ0Za/JYtEUl1qoOBXvo2CHyypbgnC6G+x9QmMLkeD7WKjkOhWmI42agq MDFkYEVPb7qXzLepwnaCgtZm497fA7jKsRiPDoEscPKNVQgiZh5qyrUzwzjy9vaLqiFX WiQdhipzySEl03unKfsMZWdIBM8WYocmBnMeoiSjJj+myqATUyZqmjd2TnmsIDoFN/sW vM0SoFbE41DXXjnZpECQ3x3G1eLXhw4KBqs+xAtc6VyuRMQBxyiWsgX/RfEFcgaeyxjY sGUaDr+W3C84Rsfc4gQyXeH7HxFAc7gHrMj8UbKRNMdjv7rTMJiFimJmiWW6w0k8JxqY xIBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="XiioxAQ/"; 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 y10-v6si332986pgq.54.2018.06.12.08.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:24:14 -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="XiioxAQ/"; 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 3E06421295CAD; Tue, 12 Jun 2018 08:23:41 -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::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:adf:b053:: with SMTP id g19-v6mr678647wra.128.1528817017051; 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.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:23:36 -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 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 --- Nt32Pkg/Sec/SecMain.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 ( VOID +EFI_ENTRYPOINT _ModuleEntryPoint ( VOID ) From patchwork Tue Jun 12 15:23:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138370 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5491437lji; Tue, 12 Jun 2018 08:24:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAlOsnES/RrN2f/jIwIKjpgYaslbocNqb3VS7rahI4dYtq0PtivCjnSMAsOWI7kZ9PRrAu X-Received: by 2002:a17:902:8a8c:: with SMTP id p12-v6mr930191plo.94.1528817058194; Tue, 12 Jun 2018 08:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817058; cv=none; d=google.com; s=arc-20160816; b=XTrY1Gz02zjxCbF0uGgD76XV/3/cPrvBCdhUOW+K7D1xLa3uBFYY0V6L7QtmijqSJN ZFrc+UAIaRRxazVFGljQ7SB9GWs7xOjEK48WOHj05wdFo6uCgbCu07CH4T6/yoAiQgLk w32Fd0uzPIbUU2iE8nBicjHMjufqmS/tbCis0F2rbI3NFRvX2IK+5516E9GxQE5gIc6/ ha7K12YySVMCk/EamHrjdOoCUEg4s+cbbijjOHHjtoh59tqjYaoRVUDakmSDTdgFl3Pl pV2GQ1DskZJrDgm3vRGspZ3FIHWNVRJ7tlwS46OiPbdavFgBrEUnEKBrhvvy6FtI+V5D HTxQ== 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=4QpCS+ZZ6YZXqx/yrGhvMYPMJH4vm6fAlFubIL0KuuQ=; b=bkvLE+ibujc3kylkS0uNyPA5yn+EetOpod2w8YJc7pX+C7+onXz5uQorI0psjgLmcx ZzSQh7uQYJtTo49lw5AUyO89dxF6h+C9NMZdcjKL/CwqNwXluswhNIlbScNS+uHC1msU Wa8E8Hm7gSG5ox574HPmmtcvpayNcnEkaDpe6S1NU59hp5dzkbhXLoLUFMKHwY3LCIgT 0wF9giz4Zs4maQaRxebifKy19GKH3aiLfO806AHvPiFYVbsyme42d0op0EHU4JBgN9SF FdfVjap/hzRFQKQlUNudLbQaf9VZiFkYApSsHuCCB6vAG+ira6mV2BI48bE2n8h+YVW/ DUvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iSQgfxyo; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id w3-v6si284616pgc.645.2018.06.12.08.24.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:24:18 -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 header.s=google header.b=iSQgfxyo; 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 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 6D7DE21295CAC; Tue, 12 Jun 2018 08:23:41 -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::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:adf:de08:: with SMTP id b8-v6mr655080wrm.39.1528817018416; 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.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); 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: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 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 --- UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/UefiCpuPkg/Library/PlatformSecLibNull/PlatformSecLibNull.c b/UefiCpuPkg/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 ) From patchwork Tue Jun 12 15:23:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 138371 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5491511lji; Tue, 12 Jun 2018 08:24:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKII0iZD9lhdiqj5fCrpyG8nzSjgVBfEIeo1Gg3uIkMENNnSeGGxBKVmFi1c0pXwM5xJI2CO X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr906702plf.47.1528817063290; Tue, 12 Jun 2018 08:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528817063; cv=none; d=google.com; s=arc-20160816; b=J4a29r/huuWMQ57zUao1Lyweo313JFnbRQB2XN8q7XgmUdzsQ5GwQK2ddNaQh6en80 Mr/AGYKYvvIIs1iv/r1SubUe5bGoIfuIUg6uIlhXpRxaDjGxNaaHUNOxtWWXS3XHKO1o faQ9/LORApCVwTCi8nEQTstGCMqx9HzEw0ppbBPFKb8lMKvQcnZSmqsjspMMNEVpiE7U mLdqJjeAi6wA7SI2ZZrvq/Nbo/GKKCddaKXsx3F7KlbwLeaxB+QhPwncbF/IkGqqAUdH y7um94nDJFn9nRHDbxwJ8QrgxNVYeceuFz3cIvQ2G3aDdojcGsWbNXvIjvrcVEgaSzWJ BLLQ== 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=jNm5P5JdYhg6LUZKYe7iUPA2413ArriGRN40n2s0Hjc=; b=f+Iiq4Fak3WGivUDD9E8Pv/A+sFURnt4uq9HwoYUvoWxbriIAY01TzFl6Wtr/OrWiA ks91jlyAjTgVQUq0iqYdaQbBz3YWB3RYeIDivpay1IExl6tWLIVfnfLrd5d2f76K+Jxs JaYUEt0JB75Vtq8QozhdLfCrQE9rOJylzY3r+JSFnEgjcvf+F3LTDciDsbpHu/khWzkc 9CircwBtmndHFq83ch3f8Mf5WcLh1iJWWTboW1onkPKF1f/rQ7rKG3gkhdwmOBLmXHcH DXIn5KLJBIiAfO2TxgMP7/uXRArHaUfXzVhlGQDmn54kbu8XYWf7TKefINqtNzfclOrh Quwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="fhsmiN/p"; 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 a73-v6si363629pfl.349.2018.06.12.08.24.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:24:23 -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="fhsmiN/p"; 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 94DE721295CB2; Tue, 12 Jun 2018 08:23:42 -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:c09::22b; helo=mail-wm0-x22b.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org 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) 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-Received: by 2002:a1c:3fc2:: with SMTP id m185-v6mr538995wma.37.1528817019694; 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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); 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: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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/ProcessorBind.h index 38ef2665390f..7f78489bc2c4 100644 --- a/MdePkg/Include/X64/ProcessorBind.h +++ b/MdePkg/Include/X64/ProcessorBind.h @@ -27,18 +27,24 @@ #pragma pack() #endif -#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, which // contains absolute symbol addresses that are subject to runtime relocation. // -// 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 discarded, +// 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 #if defined(__INTEL_COMPILER)