mirror of
https://github.com/drasko/codezero.git
synced 2026-01-29 19:23:14 +01:00
Progress on executing test0 from memfs file as an elf.
Elf is recognised OK, but somehow section table is not read correctly.
This commit is contained in:
@@ -376,9 +376,7 @@ elf_loadFile(void *elfFile, bool phys)
|
||||
pheader_type = elf_getProgramHeaderType(elfFile, i);
|
||||
// printf("Elf program header type: %p\n", pheader_type);
|
||||
|
||||
/* Enable this one
|
||||
printf("Copying to range from 0x%x to 0x%x of size: 0x%x\n", (unsigned int)dest, (unsigned int)dest + (unsigned int)len, (unsigned int)len);
|
||||
*/
|
||||
memcpy((void*) (uintptr_t) dest, (void*) (uintptr_t) src, len);
|
||||
dest += len;
|
||||
clrsize = elf_getProgramHeaderMemorySize(elfFile, i) - len;
|
||||
@@ -387,7 +385,7 @@ elf_loadFile(void *elfFile, bool phys)
|
||||
// printf("Memory cleared.\n");
|
||||
}
|
||||
// And this one
|
||||
// printf("\n");
|
||||
printf("\n");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user