Added elf_o module
This commit is contained in:
47
xtldr/modules/elf_o/includes/elf.h
Normal file
47
xtldr/modules/elf_o/includes/elf.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtldr/modules/elf_o/includes/elf.h
|
||||
* DESCRIPTION: ELF executable file format support header
|
||||
* DEVELOPERS: Jozef Nagy <schkwve@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTLDR_MODULES_ELF_O_H
|
||||
#define __XTLDR_MODULES_ELF_O_H
|
||||
|
||||
#include <xtblapi.h>
|
||||
|
||||
/* ELF image protocol related routines forward references */
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
ElfGetEntryPoint(IN PVOID ImagePointer,
|
||||
OUT PVOID *EntryPoint);
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
ElfGetMachineType(IN PVOID ImagePointer,
|
||||
OUT PUSHORT MachineType);
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
ElfGetSubSystem(IN PVOID ImagePointer,
|
||||
OUT PUSHORT SubSystem);
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
ElfLoadImage(IN PEFI_FILE_HANDLE FileHandle,
|
||||
IN LOADER_MEMORY_TYPE MemoryType,
|
||||
IN PVOID VirtualAddress,
|
||||
OUT PVOID *ImagePointer);
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
ElfRelocateImage(IN PVOID ImagePointer,
|
||||
IN EFI_VIRTUAL_ADDRESS Address);
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BlXtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
||||
IN PEFI_SYSTEM_TABLE SystemTable);
|
||||
|
||||
#endif /* __XTLDR_MODULES_ELF_O_H */
|
Verwijs in nieuw issue
Block a user