Home | History | Annotate | Download | only in Library

Lines Matching full:coff

2   Provides services to load and relocate a PE/COFF image.

4 The PE/COFF Loader Library abstracts the implementation of a PE/COFF loader for
24 // Return status codes from the PE/COFF Loader services
40 Reads contents of a PE/COFF image.
42 A function of this type reads contents of the PE/COFF image specified by FileHandle. The read
43 operation copies ReadSize bytes from the PE/COFF image starting at byte offset FileOffset into
45 If FileOffset specifies an offset past the end of the PE/COFF image, a ReadSize of 0 is returned.
47 structure for the PE/COFF Loader Library service to function correctly. This function abstracts access
48 to a PE/COFF image so it can be implemented in an environment specific manner. For example, SEC and PEI
49 environments may access memory directly to read the contents of a PE/COFF image, and DXE or UEFI
50 environments may require protocol services to read the contents of PE/COFF image
57 @param FileHandle Pointer to the file handle to read the PE/COFF image.
58 @param FileOffset Offset into the PE/COFF image to begin the read operation.
61 @param Buffer Output buffer that contains the data read from the PE/COFF image.
63 @retval RETURN_SUCCESS The specified portion of the PE/COFF image was
65 @retval RETURN_DEVICE_ERROR The specified portion of the PE/COFF image
79 /// The context structure used while PE/COFF image is being loaded and relocated.
83 /// Set by PeCoffLoaderGetImageInfo() to the ImageBase in the PE/COFF header.
87 /// Set by PeCoffLoaderGetImageInfo() to the SizeOfImage in the PE/COFF header.
99 /// PeCoffLoaderLoadImage() sets EntryPoint to to the entry point of the PE/COFF image.
119 /// Set by PeCoffLoaderGetImageInfo() to the Section Alignment in the PE/COFF header.
124 /// Set by PeCoffLoaderGetImageInfo() to offset to the PE/COFF header.
125 /// If the PE/COFF image does not start with a DOS header, this value is zero.
126 /// Otherwise, it's the offset to the PE/COFF header.
135 /// Set by PeCoffLoaderLoadImage() to CodeView area of the PE/COFF Debug directory.
145 /// Is set by PeCoffLoaderGetImageInfo() to the Section Alignment in the PE/COFF header.
172 /// Set by PeCoffLoaderGetImageInfo() to the machine type stored in the PE/COFF header.
176 /// Set by PeCoffLoaderGetImageInfo() to the subsystem type stored in the PE/COFF header.
180 /// Set by PeCoffLoaderGetImageInfo() to TRUE if the PE/COFF image does not contain
192 /// if the image contains a custom PE/COFF resource with the type 'HII'.
203 Retrieves information about a PE/COFF image.
209 If the PE/COFF image accessed through the ImageRead service in the ImageContext
210 structure is not a supported PE/COFF image type, then return RETURN_UNSUPPORTED.
218 describes the PE/COFF image that needs to be
221 @retval RETURN_SUCCESS The information on the PE/COFF image was collected.
223 @retval RETURN_UNSUPPORTED The PE/COFF image is not supported.
233 Applies relocation fixups to a PE/COFF image that was loaded with PeCoffLoaderLoadImage().
249 prior to transferring control to a PE/COFF image that is loaded using this library.
251 @param ImageContext The pointer to the image context structure that describes the PE/COFF
254 @retval RETURN_SUCCESS The PE/COFF image was relocated.
256 @retval RETURN_LOAD_ERROR The image in not a valid PE/COFF image.
269 Loads a PE/COFF image into memory.
271 Loads the PE/COFF image accessed through the ImageRead service of ImageContext into the buffer
283 prior to transferring control to a PE/COFF image that is loaded using this library.
285 @param ImageContext The pointer to the image context structure that describes the PE/COFF
288 @retval RETURN_SUCCESS The PE/COFF image was loaded into the buffer specified by
293 @retval RETURN_LOAD_ERROR The PE/COFF image is an EFI Runtime image with no relocations.
307 Reads contents of a PE/COFF image from a buffer in system memory.
310 that assumes FileHandle pointer to the beginning of a PE/COFF image.
311 This function reads contents of the PE/COFF image that starts at the system memory
313 PE/COFF image starting at byte offset FileOffset into the buffer specified by Buffer.
321 @param FileOffset Offset into the PE/COFF image to begin the read operation.
324 @param Buffer Output buffer that contains the data read from the PE/COFF image.
343 This function reapplies relocation fixups to the PE/COFF image specified by ImageBase
344 and ImageSize so the image will execute correctly when the PE/COFF
347 after this PE/COFF image was relocated with PeCoffLoaderRelocateImage().
351 prior to transferring control to a PE/COFF image that is loaded using this library.
353 @param ImageBase The base address of a PE/COFF image that has been loaded
355 @param VirtImageBase The request virtual address that the PE/COFF image is to
357 @param ImageSize The size, in bytes, of the PE/COFF image.
358 @param RelocationData A pointer to the relocation data that was collected when the PE/COFF
372 Unloads a loaded PE/COFF image from memory and releases its taken resource.
376 For NT32 emulator, the PE/COFF image loaded by system needs to release.
377 For real platform, the PE/COFF image loaded by Core doesn't needs to be unloaded,
382 @param ImageContext Pointer to the image context structure that describes the PE/COFF
385 @retval RETURN_SUCCESS The PE/COFF image was unloaded successfully.