From 230f16538f4b0ad9ddd1edd7da24c52c39da0c8d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 11 Jan 2007 15:25:07 +0000 Subject: 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 --- src/include/gpxe/elf.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/include/gpxe/elf.h (limited to 'src/include') 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 + +/** 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 */ -- cgit v1.2.3-55-g7522