Browse Source

Add placeholder elf_execute()

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
7cf4a72389
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      src/image/elf.c

+ 11
- 0
src/image/elf.c View File

34
 typedef Elf32_Phdr	Elf_Phdr;
34
 typedef Elf32_Phdr	Elf_Phdr;
35
 typedef Elf32_Off	Elf_Off;
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
  * Load ELF segment into memory
48
  * Load ELF segment into memory
39
  *
49
  *
122
 
132
 
123
 	/* Fill in entry point address */
133
 	/* Fill in entry point address */
124
 	image->entry = ehdr.e_entry;
134
 	image->entry = ehdr.e_entry;
135
+	image->execute = elf_execute;
125
 
136
 
126
 	return 0;
137
 	return 0;
127
 }
138
 }

Loading…
Cancel
Save