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

[Xen-devel] [PATCH 0/4] x86: build with llvm 8 linker


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Wed, 19 Jun 2019 13:02:46 +0200
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 19 Jun 2019 11:03:26 +0000
  • Ironport-sdr: WqytGu7Pg3h0twKpEG1t+YLSJ3XAHZ1V0YgmOx1+6EInBss6bpD3Zde5bHb025d0Pcfv4hdwQi CtYAbBeoQstBvSn81mpK1iydnLqU4V1TIcviGd9FOJVR4kG/HRQdeHOgXDe86FfvmIET6Er/un qW5+8iVf85d85JhR35FQwUZAmZa81HWDIIjf6I82EK0y0gbvnDE/o3y7A97c09mXuiLs5F0ReV vuNyIzXhuU83T6AM84ebO/Tj7Mk48/UND8ZgAYtVCHGqkm14ZJnvKd3cQ/yRrg2+we530RKr4B +wk=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hello,

Current hypervisor code/build produces an invalid binary when linked
with lld 8 (llvm linker). This is because lld 8 places orphaned sections
at the beginning of the output file, thus displacing the multiboot
headers.

In order to build a correct image with lld 8 make sure there are no
orphaned sections, and also add a build-time check to assert the
multiboot headers are present between the offset boundary given in the
specification.

Roger Pau Monne (4):
  xz: use initconst for hypervisor build
  x86/linker: use DECL_SECTION uniformly
  x86/linker: add a reloc section to ELF binary
  x86: check for multiboot{1,2} header presence

 xen/arch/x86/Makefile      |  3 +++
 xen/arch/x86/xen.lds.S     | 14 +++++++++-----
 xen/common/decompress.h    |  2 ++
 xen/common/xz/dec_bcj.c    |  6 +++---
 xen/common/xz/dec_stream.c |  2 +-
 5 files changed, 18 insertions(+), 9 deletions(-)

-- 
2.20.1 (Apple Git-117)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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