OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BasePeCoffLib2Internals.h File Reference

Go to the source code of this file.

Macros

#define PCD_RELOC_TYPE_POLICY_ARM   BIT0
 
#define IMAGE_CERTIFICATE_ALIGN   8U
 

Functions

 STATIC_ASSERT (ALIGNOF(WIN_CERTIFICATE)<=IMAGE_CERTIFICATE_ALIGN, "The PE/COFF specification guarantee does not suffice.")
 
 STATIC_ASSERT (sizeof(UINT32)==ALIGNOF(EFI_IMAGE_BASE_RELOCATION_BLOCK), "The current model violates the PE/COFF specification")
 
RETURN_STATUS PeCoffLoadImageInplaceNoBase (IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *Context)
 

Detailed Description

Provides shared private definitions across this library.

Copyright (c) 2020 - 2021, Marvin Häuser. All rights reserved.
Copyright (c) 2020, Vitaly Cheptsov. All rights reserved.
Copyright (c) 2020, ISP RAS. All rights reserved.

SPDX-License-Identifier: BSD-3-Clause

Definition in file BasePeCoffLib2Internals.h.

Macro Definition Documentation

◆ IMAGE_CERTIFICATE_ALIGN

#define IMAGE_CERTIFICATE_ALIGN   8U

Denotes the alignment requirement for Image certificate sizes.

Definition at line 26 of file BasePeCoffLib2Internals.h.

◆ PCD_RELOC_TYPE_POLICY_ARM

#define PCD_RELOC_TYPE_POLICY_ARM   BIT0

If set, ARM Thumb Image relocations are supported.

Definition at line 21 of file BasePeCoffLib2Internals.h.

Function Documentation

◆ PeCoffLoadImageInplaceNoBase()

RETURN_STATUS PeCoffLoadImageInplaceNoBase ( IN OUT PE_COFF_LOADER_IMAGE_CONTEXT * Context)

◆ STATIC_ASSERT() [1/2]

STATIC_ASSERT ( ALIGNOF(WIN_CERTIFICATE)<= IMAGE_CERTIFICATE_ALIGN,
"The PE/COFF specification guarantee does not suffice."  )

◆ STATIC_ASSERT() [2/2]

STATIC_ASSERT ( sizeof(UINT32) = =ALIGNOF(EFI_IMAGE_BASE_RELOCATION_BLOCK),
"The current model violates the PE/COFF specification"  )