iPXE
elf.h
Go to the documentation of this file.
1 #ifndef _IPXE_ELF_H
2 #define _IPXE_ELF_H
3 
4 /**
5  * @file
6  *
7  * ELF image format
8  *
9  */
10 
11 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
12 
13 #include <stdint.h>
14 #include <ipxe/image.h>
15 #include <elf.h>
16 
20 #define ELFCLASS ELFCLASS32
21 
22 extern int elf_segments ( struct image *image, Elf_Ehdr *ehdr,
23  int ( * process ) ( struct image *image,
24  Elf_Phdr *phdr, physaddr_t dest ),
26 extern int elf_load ( struct image *image, physaddr_t *entry, physaddr_t *max );
27 
28 #endif /* _IPXE_ELF_H */
A process.
Definition: process.h:17
ELF header.
Definition: elf.h:25
#define max(x, y)
Definition: ath.h:39
int elf_load(struct image *image, physaddr_t *entry, physaddr_t *max)
Load ELF image into memory.
Definition: elf.c:201
An executable image.
Definition: image.h:24
ELF image format.
Elf32_Phdr Elf_Phdr
Definition: elf.h:18
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Executable images.
static void * dest
Definition: strings.h:176
union aes_table_entry entry[256]
Table entries, indexed by S(N)
Definition: aes.c:26
uint32_t Elf32_Off
Definition: elf.h:17
unsigned long physaddr_t
Definition: stdint.h:20
Elf32_Off Elf_Off
Definition: elf.h:19
int elf_segments(struct image *image, Elf_Ehdr *ehdr, int(*process)(struct image *image, Elf_Phdr *phdr, physaddr_t dest), physaddr_t *entry, physaddr_t *max)
Process ELF segments.
Definition: elf.c:154
ELF program header.
Definition: elf.h:67
Elf32_Ehdr Elf_Ehdr
Definition: elf.h:17