]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool: Fix __pa_symbol() relocation handling
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:29 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:45:24 +0000 (14:45 -0700)
commit68245893cf447cca478e6bd71c02741656053ef4
tree2a30c2b28be64e015bc835359125152e06f0840c
parent41d24d78589705f85cbe90e5a8c1b55ea05557a2
objtool: Fix __pa_symbol() relocation handling

__pa_symbol() generates a relocation which refers to a physical address.
Convert it to back its virtual form before calculating the addend.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/arch/x86/decode.c