|
iPXE
|
ELF image format. More...
Go to the source code of this file.
Macros | |
| #define | ELFCLASS ELFCLASS32 |
Typedefs | |
| typedef Elf32_Ehdr | Elf_Ehdr |
| typedef Elf32_Phdr | Elf_Phdr |
| typedef Elf32_Off | Elf_Off |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | elf_segments (struct image *image, const Elf_Ehdr *ehdr, int(*process)(struct image *image, const Elf_Phdr *phdr, physaddr_t dest), physaddr_t *entry, physaddr_t *max) |
| Process ELF segments. | |
| int | elf_load (struct image *image, physaddr_t *entry, physaddr_t *max) |
| Load ELF image into memory. | |
ELF image format.
Definition in file elf.h.
| #define ELFCLASS ELFCLASS32 |
Definition at line 20 of file elf.h.
Referenced by elf_load().
| typedef Elf32_Ehdr Elf_Ehdr |
| typedef Elf32_Phdr Elf_Phdr |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
extern |
Process ELF segments.
Definition at line 157 of file elf.c.
References image::data, DBGC, dest, Elf32_Ehdr::e_entry, Elf32_Ehdr::e_phentsize, Elf32_Ehdr::e_phnum, Elf32_Ehdr::e_phoff, elf_segment(), ENOEXEC, image::len, max, image::name, and rc.
Referenced by elf_load(), and elfboot_probe().
|
extern |
Load ELF image into memory.
| image | ELF file |
Definition at line 206 of file elf.c.
References image::data, DBGC, Elf32_Ehdr::e_ident, EI_CLASS, EI_MAG0, EI_MAG1, EI_MAG2, EI_MAG3, elf_load_segment(), elf_segments(), ELFCLASS, ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, ENOEXEC, image::len, max, memcmp(), image::name, and rc.
Referenced by elfboot_exec(), and multiboot_load_elf().