[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EFI executable corruption when live patching is turned off


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Trammell Hudson <hudson@xxxxxxxx>
  • Date: Wed, 05 Aug 2020 18:19:05 +0000
  • Delivery-date: Wed, 05 Aug 2020 18:19:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

When building xen from head with almost any combination of options, the 
resulting xen.efi seems properly formed. When CONFIG_LIVEPATCH is turned off, 
however, the resulting xen.efi is corrupted in some way and binutils no longer 
wants to work with it:

~/build/xen-clean/xen$ git rev-parse HEAD
81fd0d3ca4b2cd309403c6e8da662c325dd35750
~/build/xen-clean/xen$ diff .config.orig .config
71,72c71
< CONFIG_LIVEPATCH=y
< CONFIG_FAST_SYMBOL_LOOKUP=y
---
> # CONFIG_LIVEPATCH is not set
105a105
> # CONFIG_COVERAGE is not set
~/build/xen-clean/xen$ objcopy xen-orig.efi test.efi
~/build/xen-clean/xen$ objcopy xen.efi test.efi
objcopy: test.efi: Data Directory size (1c) exceeds space left in section (18)
objcopy: test.efi: error copying private BFD data: file in wrong format
~/build/xen-clean/xen$ objcopy --version | head -1
GNU objcopy (GNU Binutils for Ubuntu) 2.34


I spent most of today unsuccessfully trying to figure out what was different 
between the builds (on multiple build host OS with different binutils), so I'm 
hoping that perhaps someone else has seen this problem.

--
Trammell



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.