[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86/EFI: Fix detection of buildid
commit 32b63424e4e4d0da3ebfb0b8cb702a735247453d Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Thu Jun 5 11:47:57 2025 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Tue Jul 29 17:25:54 2025 +0100 x86/EFI: Fix detection of buildid The format of the buildid is a property of the binary, not a property of how it was loaded. This fixes buildid recognition when starting xen.efi from it's MB2 entrypoint. Suggested-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxx> Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> Acked-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx> --- xen/common/version.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/common/version.c b/xen/common/version.c index 5474b8e385..56b51c81d2 100644 --- a/xen/common/version.c +++ b/xen/common/version.c @@ -203,8 +203,11 @@ void __init xen_build_init(void) rc = xen_build_id_check(n, sz, &build_id_p, &build_id_len); #ifdef CONFIG_X86 - /* Alternatively we may have a CodeView record from an EFI build. */ - if ( rc && efi_enabled(EFI_LOADER) ) + /* + * xen.efi built with a new enough toolchain will have a CodeView record, + * not an ELF note. + */ + if ( rc ) { const struct pe_external_debug_directory *dir = (const void *)n; -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |