> 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
 19:42:59 up 6 days, 14:48,  1 user,  load average: 0.56, 0.46, 0.40
This commit is contained in:
tracer-ics2023
2024-09-23 19:43:00 +08:00
committed by zzy
parent 4ed9f2608d
commit 43c0f10597

View File

@ -23,7 +23,7 @@ static uintptr_t loader(PCB *pcb, const char *filename) {
Elf_Phdr phdr[ehdr.e_phnum];
assert(ehdr.e_phentsize % ehdr.e_phnum == 0);
ret = ramdisk_read(phdr, ehdr.e_phoff, ehdr.e_phentsize);
ret = ramdisk_read(phdr, ehdr.e_phoff, sizeof(phdr));
assert(ret == ehdr.e_phentsize);
printf("phdr num is %d\n", ehdr.e_phnum);