http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
819cd3f
)
Add placeholder elf_execute()
author
Michael Brown
<mcb30@etherboot.org>
Thu, 11 Jan 2007 17:44:07 +0000
(17:44 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 11 Jan 2007 17:44:07 +0000
(17:44 +0000)
src/image/elf.c
patch
|
blob
|
history
diff --git
a/src/image/elf.c
b/src/image/elf.c
index
cf58a5c
..
d69a3e3
100644
(file)
--- 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;
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
*
/**
* 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;
/* Fill in entry point address */
image->entry = ehdr.e_entry;
+ image->execute = elf_execute;
return 0;
}
return 0;
}