From: Roger Pau Monné Date: Thu, 27 Aug 2020 07:53:46 +0000 (+0200) Subject: x86: use constant flags for section .init.rodata X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1740 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d2770047a277ccdc7924fb99d1b051eeb0d5a90f;p=xen.git x86: use constant flags for section .init.rodata LLVM 11 complains with: :1:1: error: changed section flags for .init.rodata, expected: 0x2 .pushsection .init.rodata ^ :30:9: note: while in macro instantiation entrypoint 0 ^ entry.S:979:9: note: while in macro instantiation .rept 256 ^ And: entry.S:1015:9: error: changed section flags for .init.rodata, expected: 0x2 .section .init.rodata ^ Fix it by explicitly using the same flags and type in all the instances. Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S index 8b57a00040..1e880eb9f6 100644 --- a/xen/arch/x86/x86_64/entry.S +++ b/xen/arch/x86/x86_64/entry.S @@ -967,7 +967,7 @@ GLOBAL(trap_nop) GLOBAL(autogen_entrypoints) /* pop into the .init.rodata section and record an entry point. */ .macro entrypoint ent - .pushsection .init.rodata + .pushsection .init.rodata, "a", @progbits .quad \ent .popsection .endm @@ -1012,5 +1012,5 @@ autogen_stubs: /* Automatically generated stubs. */ vec = vec + 1 .endr - .section .init.rodata + .section .init.rodata, "a", @progbits .size autogen_entrypoints, . - autogen_entrypoints