diff options
| author | Michael Brown | 2007-01-11 16:25:07 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-11 16:25:07 +0100 |
| commit | 230f16538f4b0ad9ddd1edd7da24c52c39da0c8d (patch) | |
| tree | 715fe194c396c42c845adcfe51db05ca6b9e88bf /src/include/gpxe/elf.h | |
| parent | Update TFTP to use a struct buffer rather than a callback. (diff) | |
| download | ipxe-230f16538f4b0ad9ddd1edd7da24c52c39da0c8d.tar.gz ipxe-230f16538f4b0ad9ddd1edd7da24c52c39da0c8d.tar.xz ipxe-230f16538f4b0ad9ddd1edd7da24c52c39da0c8d.zip | |
Create include/gpxe/elf.h for the ELF bits that aren't part of the ELF
standard and so don't belong in include/elf.h
Diffstat (limited to 'src/include/gpxe/elf.h')
| -rw-r--r-- | src/include/gpxe/elf.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/gpxe/elf.h b/src/include/gpxe/elf.h new file mode 100644 index 000000000..8abbb02e1 --- /dev/null +++ b/src/include/gpxe/elf.h @@ -0,0 +1,26 @@ +#ifndef _GPXE_ELF_H +#define _GPXE_ELF_H + +/** + * @file + * + * ELF image format + * + */ + +#include <elf.h> + +/** An ELF file */ +struct elf { + /** ELF file image */ + userptr_t image; + /** Length of ELF file image */ + size_t len; + + /** Entry point */ + physaddr_t entry; +}; + +extern int elf_load ( struct elf *elf ); + +#endif /* _GPXE_ELF_H */ |
