diff options
author | Uros Bizjak <[email protected]> | 2023-11-05 22:34:36 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2023-11-30 20:06:17 +0100 |
commit | 17bce3b2ae2d52e8c5c12274ce4c3a631ce9e66b (patch) | |
tree | 64fed2ccae63192f4ff0dd193e9fbbc8b2d9a4fc /scripts/gdb/linux/utils.py | |
parent | 43bda69ed9e3b86d0ba5ff9256e437d50074d7d5 (diff) |
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions