From: Andrew Cooper Date: Fri, 9 Mar 2018 15:01:21 +0000 (+0000) Subject: x86/traps: Put idt_table[] back into .bss X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~435 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=044fedfaa29b5d5774196e3fc7d955a48bfceac4;p=xen.git x86/traps: Put idt_table[] back into .bss c/s d1d6fc97d "x86/xpti: really hide almost all of Xen image" accidentially moved idt_table[] from .bss to .data by virtue of using the page_aligned section. We also have .bss.page_aligned, so use that. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich Reviewed-by: Wei Liu --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 19bc1747d5..016af12bfc 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -102,7 +102,7 @@ DEFINE_PER_CPU_READ_MOSTLY(struct desc_struct *, gdt_table); DEFINE_PER_CPU_READ_MOSTLY(struct desc_struct *, compat_gdt_table); /* Master table, used by CPU0. */ -idt_entry_t __section(".data.page_aligned") __aligned(PAGE_SIZE) +idt_entry_t __section(".bss.page_aligned") __aligned(PAGE_SIZE) idt_table[IDT_ENTRIES]; /* Pointer to the IDT of every CPU. */