]> xenbits.xensource.com Git - xen.git/commit
x86: reorder .data and .init when linking
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Feb 2016 12:06:44 +0000 (13:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Feb 2016 12:06:44 +0000 (13:06 +0100)
commitb4cd59fea0fb93e32517979095be2bd90c71e5fd
treebd6bfcf2be7782f973f5e88cde22eb2e33801ffd
parent36c672b559d35e088b181c67538b1ed5bacb0da5
x86: reorder .data and .init when linking

In preparation for using superpage mappings, .data and .bss will both want to
be mapped as read-write.  By making them adjacent, they can share the same
superpage and will not require superpage alignment between themselves.

While making this change, fix a latent alignment bug whereby the alignment for
.bss.stack_aligned was in .init.  __init_end only needs page alignment (due to
being reclaimed after boot), while .bss.stack_aligned really does needs
STACK_SIZE alignment.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xen.lds.S