The first patch removes the scheduler duplication in the linker script. The second patch adds CONFIG_GC_SECTIONS and makes it available for all architectures.
Pipeline here: https://gitlab.com/xen-project/people/jandryuk-amd/xen/-/pipelines/2205223331 --print-gc-sections is enabled, and ARM builds in particular show a good bit of removal. Jason Andryuk (2): xen: Centralize scheduler linker definition xen: Add CONFIG_GC_SECTIONS xen/Makefile | 3 +++ xen/arch/arm/Makefile | 6 +++--- xen/arch/arm/xen.lds.S | 27 ++++++++++++--------------- xen/arch/ppc/Makefile | 6 +++--- xen/arch/ppc/xen.lds.S | 19 ++++++++----------- xen/arch/riscv/Makefile | 6 +++--- xen/arch/riscv/xen.lds.S | 19 ++++++++----------- xen/arch/x86/Makefile | 6 +++--- xen/arch/x86/xen.lds.S | 39 ++++++++++++++++++--------------------- xen/common/Kconfig | 9 +++++++++ xen/include/xen/xen.lds.h | 24 +++++++++++++++--------- 11 files changed, 85 insertions(+), 79 deletions(-) -- 2.52.0
