mbox series

[0/3] xen: Linker scripts synchronization

Message ID 20220321082114.49953-1-michal.orzel@arm.com (mailing list archive)
Headers show
Series xen: Linker scripts synchronization | expand

Message

Michal Orzel March 21, 2022, 8:21 a.m. UTC
This patch series aims to do the first step towards linker scripts
synchronization. Linker scripts for arm and x86 share a lot of common
sections and in order to make the process of changing/improving/syncing
them, these sections shall be defined in just one place.

The first patch creates a header file to store the first portion of the
content mutual to both x86 and arm linker scripts. When populating this
file, we are taking an example from x86 script as it is more improved and
up-to-date.

The last two patches make use of the common macros in x86 and arm linker
scripts respectively.

Michal Orzel (3):
  xen: Introduce a header to store common linker scripts content
  x86: Make use of helpers defined in xen_lds.h
  xen/arm: Make use of helpers defined in xen_lds.h

 xen/arch/arm/xen.lds.S    |  37 ++++---------
 xen/arch/x86/xen.lds.S    |  86 +++-------------------------
 xen/include/xen/xen_lds.h | 114 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 134 insertions(+), 103 deletions(-)
 create mode 100644 xen/include/xen/xen_lds.h