|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86: restrict start_pa to xen.gz
commit 43f828b482ebc2f80d9cfb93354b034fa8c5221c
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Nov 18 09:59:09 2026 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Nov 18 09:59:09 2026 +0100
x86: restrict start_pa to xen.gz
With "start" (living in .text.header) now being discarded, "start_pa"
obtains a bogus value (which also cannot be represented in the COFF
symbol table). As the symbol is solely used for xen-syms' entry point,
limit its definition to the non-EFI linking process. Likely it should
have been that way from the start.
Fixes: 0b280404c84a ("x86/link: Relocate program headers")
Fixes: 9f8ebe9f46ce ("x86/efi: Discard multiboot and PVH entrypoints in
xen.efi")
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/xen.lds.S | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index f4da76aef0..888d5293f3 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -55,6 +55,7 @@ SECTIONS
#if !defined(EFI)
. = __XEN_VIRT_START;
__image_base__ = .;
+ start_pa = ABSOLUTE(start - __XEN_VIRT_START);
#else
. = __image_base__;
/DISCARD/ : {
@@ -74,8 +75,6 @@ SECTIONS
__2M_text_start = .; /* Start of 2M superpages, mapped RX. */
#endif
- start_pa = ABSOLUTE(start - __XEN_VIRT_START);
-
. = __XEN_VIRT_START + XEN_IMG_OFFSET;
_start = .;
DECL_SECTION(.text) {
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |