Skip to content

x86: generate xen.efi image with no write-execute sections

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/boot: clarify comment about trampoline_setup usagexen/arch/x86/boot/head.S+2 -13 replies
2/7x86/mkelf32: account for offset when detecting note segment placementxen/arch/x86/boot/mkelf32.c+2 -14 replies
3/7xen: remove -N from the linker command linexen/arch/arm/Makefile xen/arch/ppc/Makefile xen/arch/riscv/Makefile +1 more+15 -153 replies
4/7x86/boot: apply trampoline relocations at destination positionxen/arch/x86/boot/build32.lds.S xen/arch/x86/boot/head.S xen/arch/x86/boot/reloc-trampoline.c +1 more+18 -207 replies
5/7x86/mkreloc: remove warning about relocations to RO sectionxen/arch/x86/efi/mkreloc.c+0 -510 replies
6/7x86/efi: do not merge all .init sectionsxen/arch/x86/xen.lds.S+0 -82 replies
7/7xen/build: warn about RWX load segmentsxen/Makefile+0 -21 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchAndrew CooperRoger Pau MonnéJan BeulichFrediano ZiglioOleksii Kurochko
1/7R-b
2/7A-b R-b
3/7R-b R-b R-b
4/7R-b R-b
5/7
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] x86: generate xen.efi image with no write-execute sections

Hello,

The aim of the series is to generate a Xen image with no write and execute sections, so that the PE binary can be NX_COMPAT.

The main change for achieving this is changing the order in which the trampoline relocation are applied. To avoid having write-execute sections apply the trampoline relocations after having moved the trampoline to it's final destination.

Thanks, Roger.

Roger Pau Monne (7):
x86/boot: clarify comment about trampoline_setup usage x86/mkelf32: account for offset when detecting note segment placement
xen: remove -N from the linker command line
x86/boot: apply trampoline relocations at destination position x86/mkreloc: remove warning about relocations to RO section x86/efi: do not merge all .init sections
xen/build: warn about RWX load segments

 xen/Makefile                         |  2 --
 xen/arch/arm/Makefile                |  6 +++---
 xen/arch/ppc/Makefile                |  6 +++---
 xen/arch/riscv/Makefile              |  6 +++---
 xen/arch/x86/Makefile                | 12 ++++++------
 xen/arch/x86/boot/build32.lds.S      |  1 +
 xen/arch/x86/boot/head.S             |  9 +++++----
 xen/arch/x86/boot/mkelf32.c          |  3 ++-
 xen/arch/x86/boot/reloc-trampoline.c | 16 ++++++++--------
 xen/arch/x86/efi/efi-boot.h          | 15 ++++++---------
 xen/arch/x86/efi/mkreloc.c           |  5 -----
 xen/arch/x86/xen.lds.S               |  8 --------
 12 files changed, 37 insertions(+), 52 deletions(-)
Signature · 1 line
2.48.1