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:
Bahadir Balban
2009-10-06 18:30:36 +03:00
parent 965f2f9456
commit ea9c399dda
9 changed files with 120 additions and 23 deletions

View File

@@ -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;
}