]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Add data section to relocate_kernel kexec-lds
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 8 Nov 2024 05:14:05 +0000 (05:14 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 8 Nov 2024 05:24:50 +0000 (05:24 +0000)
commit6d3d4419052b4c98ec4150dfbd2aa7d298f3a506
treefd565d6397ccc07d04e716ffc84353da34ceb44e
parented190d225ede21d81dfc56cfe1e75241a15c2148
x86/kexec: Add data section to relocate_kernel

Now that it's handled sanely by a linker script we can have actual data,
and just use %rip-relative addressing to access it.

If we could call the *copy* instead of the original relocate_kernel in
the kernel text, then we could use %rip-relative addressing everywhere.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/relocate_kernel_64.S
arch/x86/kernel/vmlinux.lds.S