diff --git a/nemu/src/utils/elf-parser.c b/nemu/src/utils/elf-parser.c index 98daace..c3deab1 100644 --- a/nemu/src/utils/elf-parser.c +++ b/nemu/src/utils/elf-parser.c @@ -21,8 +21,10 @@ void init_elf(const char *path) { psh = section_header + i; if (psh->sh_type == SHT_SYMTAB) { symtab = psh; + printf("symtab: %u %u\n", symtab->sh_size, symtab->sh_offset); } else if (psh->sh_type == SHT_STRTAB) { strtab = psh; + printf("strtab: %u %u\n", strtab->sh_size, strtab->sh_offset); } if(symtab && strtab) break; }