> 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:56:00 up 6 days, 12:01, 1 user, load average: 1.58, 0.89, 0.59
This commit is contained in:
@ -22,7 +22,7 @@ static uintptr_t loader(PCB *pcb, const char *filename) {
|
||||
// assert(*(uint32_t *)ehdr.e_ident == 0x7f454746);
|
||||
|
||||
Elf_Phdr phdr[ehdr.e_phnum];
|
||||
assert(ehdr.e_phentsize % sizeof(Elf_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));
|
||||
|
||||
|
Reference in New Issue
Block a user