diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/firmware/efi/libstub/zboot-header.S | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/firmware/efi/libstub/zboot-header.S')
| -rw-r--r-- | drivers/firmware/efi/libstub/zboot-header.S | 53 | 
1 files changed, 34 insertions, 19 deletions
diff --git a/drivers/firmware/efi/libstub/zboot-header.S b/drivers/firmware/efi/libstub/zboot-header.S index ec4525d40e0c..fb676ded47fa 100644 --- a/drivers/firmware/efi/libstub/zboot-header.S +++ b/drivers/firmware/efi/libstub/zboot-header.S @@ -17,7 +17,7 @@ __efistub_efi_zboot_header:  	.long		MZ_MAGIC  	.ascii		"zimg"					// image type  	.long		__efistub__gzdata_start - .Ldoshdr	// payload offset -	.long		__efistub__gzdata_size - 12		// payload size +	.long		__efistub__gzdata_size - ZBOOT_SIZE_LEN	// payload size  	.long		0, 0					// reserved  	.asciz		COMP_TYPE				// compression type  	.org		.Ldoshdr + 0x38 @@ -63,7 +63,7 @@ __efistub_efi_zboot_header:  	.long		.Lefi_header_end - .Ldoshdr  	.long		0  	.short		IMAGE_SUBSYSTEM_EFI_APPLICATION -	.short		0 +	.short		IMAGE_DLL_CHARACTERISTICS_NX_COMPAT  #ifdef CONFIG_64BIT  	.quad		0, 0, 0, 0  #else @@ -78,9 +78,36 @@ __efistub_efi_zboot_header:  	.quad		0				// ExceptionTable  	.quad		0				// CertificationTable  	.quad		0				// BaseRelocationTable -#ifdef CONFIG_DEBUG_EFI +#if defined(PE_DLL_CHAR_EX) || defined(CONFIG_DEBUG_EFI)  	.long		.Lefi_debug_table - .Ldoshdr	// DebugTable  	.long		.Lefi_debug_table_size + +	.section	".rodata", "a" +	.p2align	2 +.Lefi_debug_table: +	// EFI_IMAGE_DEBUG_DIRECTORY_ENTRY[] +#ifdef PE_DLL_CHAR_EX +	.long		0					// Characteristics +	.long		0					// TimeDateStamp +	.short		0					// MajorVersion +	.short		0					// MinorVersion +	.long		IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS	// Type +	.long		4					// SizeOfData +	.long		0					// RVA +	.long		.Lefi_dll_characteristics_ex - .Ldoshdr	// FileOffset +#endif +#ifdef CONFIG_DEBUG_EFI +	.long		0					// Characteristics +	.long		0					// TimeDateStamp +	.short		0					// MajorVersion +	.short		0					// MinorVersion +	.long		IMAGE_DEBUG_TYPE_CODEVIEW		// Type +	.long		.Lefi_debug_entry_size			// SizeOfData +	.long		0					// RVA +	.long		.Lefi_debug_entry - .Ldoshdr		// FileOffset +#endif +	.set		.Lefi_debug_table_size, . - .Lefi_debug_table +	.previous  #endif  .Lsection_table: @@ -110,23 +137,11 @@ __efistub_efi_zboot_header:  	.set		.Lsection_count, (. - .Lsection_table) / 40 +#ifdef PE_DLL_CHAR_EX +.Lefi_dll_characteristics_ex: +	.long		PE_DLL_CHAR_EX +#endif  #ifdef CONFIG_DEBUG_EFI -	.section	".rodata", "a" -	.align		2 -.Lefi_debug_table: -	// EFI_IMAGE_DEBUG_DIRECTORY_ENTRY -	.long		0				// Characteristics -	.long		0				// TimeDateStamp -	.short		0				// MajorVersion -	.short		0				// MinorVersion -	.long		IMAGE_DEBUG_TYPE_CODEVIEW	// Type -	.long		.Lefi_debug_entry_size		// SizeOfData -	.long		0				// RVA -	.long		.Lefi_debug_entry - .Ldoshdr	// FileOffset - -	.set		.Lefi_debug_table_size, . - .Lefi_debug_table -	.previous -  .Lefi_debug_entry:  	// EFI_IMAGE_DEBUG_CODEVIEW_NB10_ENTRY  	.ascii		"NB10"				// Signature  |