xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH 0/4] x86: build with llvm 8 linker
@ 2019-06-19 11:02 Roger Pau Monne
  2019-06-19 11:02 ` [Xen-devel] [PATCH 1/4] xz: use initconst for hypervisor build Roger Pau Monne
                   ` (3 more replies)
  0 siblings, 4 replies; 33+ messages in thread
From: Roger Pau Monne @ 2019-06-19 11:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Roger Pau Monne

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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2019-06-25 14:18 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19 11:02 [Xen-devel] [PATCH 0/4] x86: build with llvm 8 linker Roger Pau Monne
2019-06-19 11:02 ` [Xen-devel] [PATCH 1/4] xz: use initconst for hypervisor build Roger Pau Monne
2019-06-19 11:09   ` Andrew Cooper
2019-06-19 11:43     ` Jan Beulich
2019-06-19 11:50   ` Jan Beulich
2019-06-19 14:44     ` Roger Pau Monné
2019-06-19 11:02 ` [Xen-devel] [PATCH 2/4] x86/linker: use DECL_SECTION uniformly Roger Pau Monne
2019-06-19 11:12   ` Andrew Cooper
2019-06-19 11:02 ` [Xen-devel] [PATCH 3/4] x86/linker: add a reloc section to ELF binary Roger Pau Monne
2019-06-19 11:20   ` Andrew Cooper
2019-06-19 11:56     ` Jan Beulich
2019-06-19 14:30     ` Roger Pau Monné
2019-06-19 14:37       ` Jan Beulich
2019-06-19 12:57   ` Jan Beulich
2019-06-19 15:06     ` Roger Pau Monné
2019-06-21  6:34       ` Jan Beulich
2019-06-21 11:46         ` Roger Pau Monné
2019-06-21 12:07           ` Jan Beulich
2019-06-21 13:41             ` Roger Pau Monné
2019-06-24 11:24         ` Daniel Kiper
2019-06-25  8:10           ` Roger Pau Monné
2019-06-25  9:18             ` Jan Beulich
2019-06-25 11:08               ` Roger Pau Monné
2019-06-25 12:48                 ` Roger Pau Monné
2019-06-25 14:18                   ` Jan Beulich
2019-06-25 14:11                 ` Jan Beulich
2019-06-19 11:02 ` [Xen-devel] [PATCH 4/4] x86: check for multiboot{1, 2} header presence Roger Pau Monne
2019-06-19 11:11   ` Andrew Cooper
2019-06-19 11:20     ` Roger Pau Monné
2019-06-19 11:23       ` Andrew Cooper
2019-06-19 13:08   ` Jan Beulich
2019-06-19 14:40     ` Roger Pau Monné
2019-06-21  6:24       ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).