iPXE
elf.h
Go to the documentation of this file.
00001 #ifndef _IPXE_ELF_H
00002 #define _IPXE_ELF_H
00003 
00004 /**
00005  * @file
00006  *
00007  * ELF image format
00008  *
00009  */
00010 
00011 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00012 
00013 #include <stdint.h>
00014 #include <ipxe/image.h>
00015 #include <elf.h>
00016 
00017 typedef Elf32_Ehdr      Elf_Ehdr;
00018 typedef Elf32_Phdr      Elf_Phdr;
00019 typedef Elf32_Off       Elf_Off;
00020 #define ELFCLASS        ELFCLASS32
00021 
00022 extern int elf_segments ( struct image *image, Elf_Ehdr *ehdr,
00023                           int ( * process ) ( struct image *image,
00024                                               Elf_Phdr *phdr, physaddr_t dest ),
00025                           physaddr_t *entry, physaddr_t *max );
00026 extern int elf_load ( struct image *image, physaddr_t *entry, physaddr_t *max );
00027 
00028 #endif /* _IPXE_ELF_H */