mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
Add placeholder elf_execute()
This commit is contained in:
parent
819cd3f41c
commit
7cf4a72389
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user