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