xref: /linux/drivers/firmware/efi/libstub/zboot.lds (revision 497e6b37b0099dc415578488287fd84fb74433eb)
1/* SPDX-License-Identifier: GPL-2.0 */
2
3ENTRY(__efistub_efi_zboot_header);
4
5SECTIONS
6{
7	.head : ALIGN(4096) {
8		*(.head)
9	}
10
11	.text : {
12		*(.text* .init.text*)
13	}
14
15	.rodata : ALIGN(8) {
16		__efistub__gzdata_start = .;
17		*(.gzdata)
18		__efistub__gzdata_end = .;
19		*(.rodata* .init.rodata* .srodata*)
20		_etext = ALIGN(4096);
21		. = _etext;
22	}
23
24	.data : ALIGN(4096) {
25		*(.data* .init.data*)
26		_edata = ALIGN(512);
27		. = _edata;
28	}
29
30	.bss : {
31		*(.bss* .init.bss*)
32		_end = ALIGN(512);
33		. = _end;
34	}
35
36	/DISCARD/ : {
37		*(.modinfo .init.modinfo)
38	}
39}
40
41PROVIDE(__efistub__gzdata_size =
42		ABSOLUTE(__efistub__gzdata_end - __efistub__gzdata_start));
43
44PROVIDE(__data_rawsize = ABSOLUTE(_edata - _etext));
45PROVIDE(__data_size = ABSOLUTE(_end - _etext));
46