From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: ADUXVKKS5/3LM4h/PXsUntYVBAROCLJg4HyNyhIh1Aob8rEZC5Wz5/nlm5YG0Z7F0Gy5x98Yj8hMtQ== X-Received: by 2002:a1c:f308:: with SMTP id q8-v6mr571391wmq.6.1528817014257; Tue, 12 Jun 2018 08:23:34 -0700 (PDT) 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 Cc: Ard Biesheuvel , Michael D Kinney , Liming Gao , Ruiyu Ni , Hao Wu , Leif Lindholm , Jordan Justen , Andrew Fish , Star Zeng , Eric Dong , Laszlo Ersek , Zenith432 , "Shi, Steven" 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: [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: , X-List-Received-Date: Tue, 12 Jun 2018 15:23:36 -0000 Annotate module entry points with EFI_ENTRYPOINT so we can classify the resulting symbol as global explicitly at link time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c b/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 -- 2.17.1