|
@@ -34,6 +34,16 @@ typedef Elf32_Ehdr Elf_Ehdr;
|
34
|
34
|
typedef Elf32_Phdr Elf_Phdr;
|
35
|
35
|
typedef Elf32_Off Elf_Off;
|
36
|
36
|
|
|
37
|
+/**
|
|
38
|
+ * Execute ELF image
|
|
39
|
+ *
|
|
40
|
+ * @v image ELF file
|
|
41
|
+ * @ret rc Return status code
|
|
42
|
+ */
|
|
43
|
+static int elf_execute ( struct image *image __unused ) {
|
|
44
|
+ return -ENOTSUP;
|
|
45
|
+}
|
|
46
|
+
|
37
|
47
|
/**
|
38
|
48
|
* Load ELF segment into memory
|
39
|
49
|
*
|
|
@@ -122,6 +132,7 @@ int elf_load ( struct image *image ) {
|
122
|
132
|
|
123
|
133
|
/* Fill in entry point address */
|
124
|
134
|
image->entry = ehdr.e_entry;
|
|
135
|
+ image->execute = elf_execute;
|
125
|
136
|
|
126
|
137
|
return 0;
|
127
|
138
|
}
|