From: Michael Brown Date: Thu, 11 Jan 2007 17:44:07 +0000 (+0000) Subject: Add placeholder elf_execute() X-Git-Tag: v0.9.3~685 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cf4a723890a219ef40a16ea894aeca6f11f6db3;p=thirdparty%2Fipxe.git Add placeholder elf_execute() --- diff --git a/src/image/elf.c b/src/image/elf.c index cf58a5c33..d69a3e318 100644 --- a/src/image/elf.c +++ b/src/image/elf.c @@ -34,6 +34,16 @@ typedef Elf32_Ehdr Elf_Ehdr; 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 * @@ -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; }