]> xenbits.xensource.com Git - xen.git/commit
xen/ppc: Ensure ELF sections' physical load addresses start at 0x0
authorShawn Anastasio <sanastasio@raptorengineering.com>
Thu, 21 Mar 2024 08:49:20 +0000 (09:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Mar 2024 08:49:20 +0000 (09:49 +0100)
commit97b90f9bf2e5c93e0f61c927fa2bc8a56a213faa
tree16b37e74e4ca064e7d8c8fea54940e752e7ba2a6
parent10e8d824b76f55dde7c1793f48d76d4ff9df5e0a
xen/ppc: Ensure ELF sections' physical load addresses start at 0x0

Some boot mechanisms, including the new linux file_load kexec systemcall
used by system firmware v2.10 on RaptorCS systems will try to honor the
physical address field of the ELF LOAD section header, which will fail
when the address is based off of XEN_VIRT_START (0xc000000000000000).

To ensure that the physical address of the LOAD section header starts at
0x0, move x86's DECL_SECTION macro to xen.lds.h and use it to declare
all sections.

Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/ppc/xen.lds.S
xen/arch/x86/xen.lds.S
xen/include/xen/xen.lds.h