]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
objtool: Unify STACK_FRAME_NON_STANDARD entry sizes
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:56 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:50:17 +0000 (14:50 -0700)
The C implementation of STACK_FRAME_NON_STANDARD emits 8-byte entries,
whereas the asm version's entries are only 4 bytes.

Make them consistent by converting the asm version to 8-byte entries.

This is much easier than converting the C version to 4-bytes, which
would require awkwardly putting inline asm in a dummy function in order
to pass the 'func' pointer to the asm.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
include/linux/objtool.h

index 4fea6a042b28f214173a65f125ad8482043f7181..b18ab53561c9951fe6d481d05fe3f0794bd67e08 100644 (file)
@@ -92,7 +92,7 @@
 
 .macro STACK_FRAME_NON_STANDARD func:req
        .pushsection .discard.func_stack_frame_non_standard, "aw"
-       .long \func - .
+       .quad \func
        .popsection
 .endm