aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2024-12-05 12:28:08 +0100
committerIngo Molnar <mingo@kernel.org>2024-12-05 13:18:54 +0100
commit0d9b9a328cb605419ed046d341dc2a3d66ee0256 (patch)
tree5b246d0516f00f458c16416bcbba3eb210315a64 /tools/perf/scripts/python
parentx86/boot/64: Determine VA/PA offset before entering C code (diff)
downloadlinux-0d9b9a328cb605419ed046d341dc2a3d66ee0256.tar.gz
linux-0d9b9a328cb605419ed046d341dc2a3d66ee0256.zip
x86/boot/64: Avoid intentional absolute symbol references in .head.text
The code in .head.text executes from a 1:1 mapping and cannot generally refer to global variables using their kernel virtual addresses. However, there are some occurrences of such references that are valid: the kernel virtual addresses of _text and _end are needed to populate the page tables correctly, and some other section markers are used in a similar way. To avoid the need for making exceptions to the rule that .head.text must not contain any absolute symbol references, derive these addresses from the RIP-relative 1:1 mapped physical addresses, which can be safely determined using RIP_REL_REF(). Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Link: https://lore.kernel.org/r/20241205112804.3416920-12-ardb+git@google.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions