> 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
 16:57:26 up 6 days, 12:03,  1 user,  load average: 0.72, 0.79, 0.59
This commit is contained in:
tracer-ics2023
2024-09-23 16:57:29 +08:00
committed by zzy
parent 466dbb1777
commit bf04db25b2

View File

@ -24,7 +24,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);
assert(ret == sizeof(phdr));
assert(ret == ehdr.e_phentsize);
for (int i = 0; i < ehdr.e_phnum; i ++) {
if (phdr[i].p_type != PT_LOAD) continue;