summaryrefslogtreecommitdiffstats
path: root/src/image/elf.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-11 18:44:07 +0100
committerMichael Brown2007-01-11 18:44:07 +0100
commit7cf4a723890a219ef40a16ea894aeca6f11f6db3 (patch)
treed74d6c7e8aa56382885de3a91191683ff9998e85 /src/image/elf.c
parentLimit -ENOEXEC to mean "this is not in my format". (diff)
downloadipxe-7cf4a723890a219ef40a16ea894aeca6f11f6db3.tar.gz
ipxe-7cf4a723890a219ef40a16ea894aeca6f11f6db3.tar.xz
ipxe-7cf4a723890a219ef40a16ea894aeca6f11f6db3.zip
Add placeholder elf_execute()
Diffstat (limited to 'src/image/elf.c')
-rw-r--r--src/image/elf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/image/elf.c b/src/image/elf.c
index cf58a5c3..d69a3e31 100644
--- a/src/image/elf.c
+++ b/src/image/elf.c
@@ -35,6 +35,16 @@ typedef Elf32_Phdr Elf_Phdr;
typedef Elf32_Off Elf_Off;
/**
+ * Execute ELF image
+ *
+ * @v image ELF file
+ * @ret rc Return status code
+ */
+static int elf_execute ( struct image *image __unused ) {
+ return -ENOTSUP;
+}
+
+/**
* Load ELF segment into memory
*
* @v image ELF file
@@ -122,6 +132,7 @@ int elf_load ( struct image *image ) {
/* Fill in entry point address */
image->entry = ehdr.e_entry;
+ image->execute = elf_execute;
return 0;
}