From: Roger Pau Monne Date: Fri, 21 Jun 2019 16:38:00 +0000 (+0200) Subject: x86/linker: use DECL_SECTION uniformly X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1997 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f3d8eef9091747e70c505094f63514b43329a922;p=xen.git x86/linker: use DECL_SECTION uniformly Replace the two open-coded EFI related section declarations with the usage of DECL_SECTION. This is a preparatory change for also adding a reloc section to the ELF binary. Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index cb42dc8fda..98a99444c2 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -298,12 +298,12 @@ SECTIONS #ifdef EFI . = ALIGN(4); - .reloc : { + DECL_SECTION(.reloc) { *(.reloc) } :text /* Trick the linker into setting the image size to exactly 16Mb. */ . = ALIGN(__section_alignment__); - .pad : { + DECL_SECTION(.pad) { . = ALIGN(MB(16)); } :text #endif