> 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
 13:11:57  up   0:09,  2 users,  load average: 0.88, 0.54, 0.32
This commit is contained in:
tracer-ysyx 2024-03-17 13:11:57 +08:00 committed by xinyangli
parent abd418c462
commit c102a89310

View file

@ -27,10 +27,10 @@ void init_elf(const char *path) {
psh = section_header + i; psh = section_header + i;
if (psh->sh_type == SHT_SYMTAB) { if (psh->sh_type == SHT_SYMTAB) {
symtab = psh; symtab = psh;
printf("symtab: %u %u\n", symtab->sh_size, symtab->sh_offset); // printf("symtab: %u %u\n", symtab->sh_size, symtab->sh_offset);
} else if (psh->sh_type == SHT_STRTAB) { } else if (psh->sh_type == SHT_STRTAB) {
strtab = psh; strtab = psh;
printf("strtab: %u %u\n", strtab->sh_size, strtab->sh_offset); // printf("strtab: %u %u\n", strtab->sh_size, strtab->sh_offset);
} }
printf("section name: %s\n", shstrtab + psh->sh_name); printf("section name: %s\n", shstrtab + psh->sh_name);
// if(symtab && strtab) break; // if(symtab && strtab) break;