TianoCore EDK2 master
Loading...
Searching...
No Matches
ElfLibInternal.h
Go to the documentation of this file.
1
9#ifndef EFI_LIB_INTERNAL_H_
10#define EFI_LIB_INTERNAL_H_
11
12#include <Library/BaseLib.h>
13#include <Library/DebugLib.h>
15#include "ElfLib.h"
16#include "ElfCommon.h"
17#include "Elf32.h"
18#include "Elf64.h"
19
20#define ELF_NEXT_ENTRY(EntryType, Current, EntrySize) \
21 ((EntryType *) ((UINT8 *)Current + EntrySize))
22
33 IN UINT8 *ImageBase,
34 IN UINT32 Index
35 );
36
47 IN UINT8 *ImageBase,
48 IN UINT32 Index
49 );
50
61 IN UINT8 *ImageBase,
62 IN UINT32 Index
63 );
64
75 IN UINT8 *ImageBase,
76 IN UINT32 Index
77 );
78
91 );
92
105 IN ELF_IMAGE_CONTEXT *ElfCt
106 );
107
108#endif
Elf32_Phdr * GetElf32SegmentByIndex(IN UINT8 *ImageBase, IN UINT32 Index)
Definition: Elf32Lib.c:44
EFI_STATUS LoadElf32Image(IN ELF_IMAGE_CONTEXT *ElfCt)
Definition: Elf32Lib.c:430
Elf64_Shdr * GetElf64SectionByIndex(IN UINT8 *ImageBase, IN UINT32 Index)
Definition: Elf64Lib.c:20
EFI_STATUS LoadElf64Image(IN ELF_IMAGE_CONTEXT *ElfCt)
Definition: Elf64Lib.c:439
Elf32_Shdr * GetElf32SectionByIndex(IN UINT8 *ImageBase, IN UINT32 Index)
Definition: Elf32Lib.c:20
Elf64_Phdr * GetElf64SegmentByIndex(IN UINT8 *ImageBase, IN UINT32 Index)
Definition: Elf64Lib.c:44
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29