diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-12-05 12:28:08 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-12-05 13:18:54 +0100 |
commit | 0d9b9a328cb605419ed046d341dc2a3d66ee0256 (patch) | |
tree | 5b246d0516f00f458c16416bcbba3eb210315a64 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 093562198e1a6360672954293753f4c6cb9a3316 (diff) |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions