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 )