> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 17:48:52 up 6 days, 12:54, 1 user, load average: 0.68, 0.55, 0.60
This commit is contained in:
@ -26,6 +26,7 @@ static uintptr_t loader(PCB *pcb, const char *filename) {
|
||||
ret = ramdisk_read(phdr, ehdr.e_phoff, ehdr.e_phentsize);
|
||||
assert(ret == ehdr.e_phentsize);
|
||||
|
||||
printf("phdr num is %d\n", ehdr.e_phnum);
|
||||
for (int i = 0; i < ehdr.e_phnum; i ++) {
|
||||
if (phdr[i].p_type != PT_LOAD) continue;
|
||||
ret = ramdisk_read((void*)phdr[i].p_vaddr, phdr[i].p_offset, phdr[i].p_filesz);
|
||||
|
Reference in New Issue
Block a user