1a0509109SArd Biesheuvel/* SPDX-License-Identifier: GPL-2.0 */ 2a0509109SArd Biesheuvel 3a0509109SArd BiesheuvelENTRY(__efistub_efi_zboot_header); 4a0509109SArd Biesheuvel 5*45dd403dSArd BiesheuvelPROVIDE(zboot_code_size = ABSOLUTE(0)); 6*45dd403dSArd Biesheuvel 7a0509109SArd BiesheuvelSECTIONS 8a0509109SArd Biesheuvel{ 9a0509109SArd Biesheuvel .head : ALIGN(4096) { 10a0509109SArd Biesheuvel *(.head) 11a0509109SArd Biesheuvel } 12a0509109SArd Biesheuvel 13a0509109SArd Biesheuvel .text : { 14a0509109SArd Biesheuvel *(.text* .init.text*) 15a0509109SArd Biesheuvel } 16a0509109SArd Biesheuvel 17a0509109SArd Biesheuvel .rodata : ALIGN(8) { 18a0509109SArd Biesheuvel __efistub__gzdata_start = .; 19a0509109SArd Biesheuvel *(.gzdata) 20a0509109SArd Biesheuvel __efistub__gzdata_end = .; 21a0509109SArd Biesheuvel *(.rodata* .init.rodata* .srodata*) 22*45dd403dSArd Biesheuvel 23*45dd403dSArd Biesheuvel . = ALIGN(4); 24*45dd403dSArd Biesheuvel __efistub_code_size = .; 25*45dd403dSArd Biesheuvel LONG(zboot_code_size); 26*45dd403dSArd Biesheuvel 27a0509109SArd Biesheuvel _etext = ALIGN(4096); 28a0509109SArd Biesheuvel . = _etext; 29a0509109SArd Biesheuvel } 30a0509109SArd Biesheuvel 31a0509109SArd Biesheuvel .data : ALIGN(4096) { 32a0509109SArd Biesheuvel *(.data* .init.data*) 33a0509109SArd Biesheuvel _edata = ALIGN(512); 34a0509109SArd Biesheuvel . = _edata; 35a0509109SArd Biesheuvel } 36a0509109SArd Biesheuvel 37a0509109SArd Biesheuvel .bss : { 38a0509109SArd Biesheuvel *(.bss* .init.bss*) 39a0509109SArd Biesheuvel _end = ALIGN(512); 40a0509109SArd Biesheuvel . = _end; 41a0509109SArd Biesheuvel } 42a0509109SArd Biesheuvel 43a0509109SArd Biesheuvel /DISCARD/ : { 44a0509109SArd Biesheuvel *(.modinfo .init.modinfo) 45a0509109SArd Biesheuvel } 46a0509109SArd Biesheuvel} 47a0509109SArd Biesheuvel 4853a7ea28SArd BiesheuvelPROVIDE(__efistub__gzdata_size = 4953a7ea28SArd Biesheuvel ABSOLUTE(__efistub__gzdata_end - __efistub__gzdata_start)); 50a0509109SArd Biesheuvel 51a0509109SArd BiesheuvelPROVIDE(__data_rawsize = ABSOLUTE(_edata - _etext)); 52a0509109SArd BiesheuvelPROVIDE(__data_size = ABSOLUTE(_end - _etext)); 53