Skip to content
Snippets Groups Projects
Commit c18d5889 authored by Waiman Long's avatar Waiman Long
Browse files

objtool,efi: Update __efi64_thunk annotation

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2090231



commit 537da1ed
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Tue, 8 Mar 2022 16:30:15 +0100

    objtool,efi: Update __efi64_thunk annotation

    The current annotation relies on not running objtool on the file; this
    won't work when running objtool on vmlinux.o. Instead explicitly mark
    __efi64_thunk() to be ignored.

    This preserves the status quo, which is somewhat unfortunate. Luckily
    this code is hardly ever used.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Link: https://lore.kernel.org/r/20220308154317.402118218@infradead.org



Signed-off-by: default avatarWaiman Long <longman@redhat.com>
parent 5bbc004e
No related branches found
No related tags found
No related merge requests found
# SPDX-License-Identifier: GPL-2.0
OBJECT_FILES_NON_STANDARD_efi_thunk_$(BITS).o := y
KASAN_SANITIZE := n
GCOV_PROFILE := n
......
......@@ -20,12 +20,14 @@
*/
#include <linux/linkage.h>
#include <linux/objtool.h>
#include <asm/page_types.h>
#include <asm/segment.h>
.text
.code64
SYM_CODE_START(__efi64_thunk)
SYM_FUNC_START(__efi64_thunk)
STACK_FRAME_NON_STANDARD __efi64_thunk
push %rbp
push %rbx
......@@ -69,7 +71,7 @@ SYM_CODE_START(__efi64_thunk)
2: pushl $__KERNEL_CS
pushl %ebp
lret
SYM_CODE_END(__efi64_thunk)
SYM_FUNC_END(__efi64_thunk)
.bss
.balign 8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment