> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 00:54:50  up  10:30,  2 users,  load average: 0.69, 0.65, 0.56
This commit is contained in:
tracer-ysyx 2024-03-17 00:54:50 +08:00 committed by xinyangli
parent a20136aec5
commit 8513980668

View file

@ -32,7 +32,7 @@ void init_elf(const char *path) {
}
FAILED_GOTO(failed_shstrtab, fseek(elf_file, section_header[header.e_shstrndx].sh_offset, SEEK_SET) != 0);
FAILED_GOTO(failed_shstrtab, fread(shstrtab, sizeof(Elf32_Sym), section_header[header.e_shstrndx].sh_size, elf_file) <= 0);
printf("%s", shstrtab);
printf("%u", section_header[header.e_shstrndx].sh_offset);
// if(symtab && strtab) break;
}