x86/boot: move l<N>_bootmap

Having them in the general .init.data section is somewhat wasteful, due
to involved padding. Move them into .init.data.page_aligned, and place
that right after .init.bss.stack_aligned.

Overall .init.data* shrinks by slightly over 2 pages in the build I'm
looking at.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2025-06-26 14:59:05 +02:00
1 parent 196cdc097f
commit afbb876f1f
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ END(idle_pg_table)
GLOBAL(__page_tables_end)
/* Init pagetables. Enough page directories to map into 4GB. */
.section .init.data, "aw", @progbits
.section .init.data.page_aligned, "aw", @progbits
DATA_LOCAL(l1_bootmap, PAGE_SIZE)
.fill L1_PAGETABLE_ENTRIES, 8, 0
+1
View File
@@ -221,6 +221,7 @@ SECTIONS
DECL_SECTION(.init.data) {
#endif
*(.init.bss.stack_aligned)
*(.init.data.page_aligned)
. = ALIGN(POINTER_ALIGN);
__initdata_cf_clobber_start = .;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.