From: Andrew Cooper Date: Fri, 22 Apr 2016 18:38:00 +0000 (+0100) Subject: Introduce more linker alignment assertions X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ce3f56671d9e736b8f6751354936b54033307f53;p=people%2Froyger%2Fxen-test-framework.git Introduce more linker alignment assertions Signed-off-by: Andrew Cooper --- diff --git a/arch/x86/link.lds.S b/arch/x86/link.lds.S index 463e2ae..4461fe7 100644 --- a/arch/x86/link.lds.S +++ b/arch/x86/link.lds.S @@ -54,6 +54,9 @@ SECTIONS } } +ASSERT(IS_ALIGNED(hypercall_page, PAGE_SIZE), "hypercall_page misaligned"); +ASSERT(IS_ALIGNED(boot_stack, PAGE_SIZE), "boot_stack misaligned"); + #ifdef CONFIG_HVM ASSERT(IS_ALIGNED(pae_l1_identmap, PAGE_SIZE), "pae_l1_identmap misaligned"); @@ -63,6 +66,9 @@ ASSERT(IS_ALIGNED(pae_l4_identmap, PAGE_SIZE), "pae_l4_identmap misaligned"); ASSERT(IS_ALIGNED(pae32_l3_identmap, 32), "pae32_l3_ident misaligned"); +ASSERT(IS_ALIGNED(pse_l1_identmap, PAGE_SIZE), "pse_l1_identmap misaligned"); +ASSERT(IS_ALIGNED(pse_l2_identmap, PAGE_SIZE), "pse_l2_identmap misaligned"); + #endif /* * Local variables: