From: Roger Pau Monne Date: Fri, 21 Jun 2019 16:38:00 +0000 (+0200) Subject: x86/linker: use DECL_SECTION uniformly X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f3d8eef9091747e70c505094f63514b43329a922;p=people%2Fdwmw2%2Fxen.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