Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#include <asm/page.h>
3
4/*
5 * .boot.data section is shared between the decompressor code and the
6 * decompressed kernel. The decompressor will store values in it, and copy
7 * over to the decompressed image before starting it.
8 *
9 * .boot.data variables are kept in separate .boot.data.<var name> sections,
10 * which are sorted by alignment first, then by name before being merged
11 * into single .boot.data section. This way big holes cased by page aligned
12 * structs are avoided and linker produces consistent result.
13 */
14#define BOOT_DATA \
15 . = ALIGN(PAGE_SIZE); \
16 .boot.data : { \
17 __boot_data_start = .; \
18 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.boot.data*))) \
19 __boot_data_end = .; \
20 }