summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/elf.h26
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 */