]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/linker: use DECL_SECTION uniformly
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 21 Jun 2019 16:38:00 +0000 (18:38 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Jun 2019 16:41:05 +0000 (17:41 +0100)
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é <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xen.lds.S

index cb42dc8fda53948b4f6952acbf1e8e6683958c97..98a99444c2e35cdd8f8a147cc881e85c8cb2582f 100644 (file)
@@ -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