diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-11-05 22:34:36 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-11-30 20:06:17 +0100 |
commit | 17bce3b2ae2d52e8c5c12274ce4c3a631ce9e66b (patch) | |
tree | 64fed2ccae63192f4ff0dd193e9fbbc8b2d9a4fc /arch/x86/net | |
parent | x86/percpu: Define PER_CPU_VAR macro also for !__ASSEMBLY__ (diff) | |
download | linux-17bce3b2ae2d.tar.gz linux-17bce3b2ae2d.tar.bz2 linux-17bce3b2ae2d.zip |
x86/callthunks: Handle %rip-relative relocations in call thunk template
Contrary to alternatives, relocations are currently not supported in
call thunk templates. Re-use the existing infrastructure from
alternative.c to allow %rip-relative relocations when copying call
thunk template from its storage location.
The patch allows unification of ASM_INCREMENT_CALL_DEPTH, which already
uses PER_CPU_VAR macro, with INCREMENT_CALL_DEPTH, used in call thunk
template, which is currently limited to use absolute address.
Reuse existing relocation infrastructure from alternative.c.,
as suggested by Peter Zijlstra.
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231105213731.1878100-3-ubizjak@gmail.com
Diffstat (limited to 'arch/x86/net')
0 files changed, 0 insertions, 0 deletions