diff --git a/nemu/src/utils/elf-parser.c b/nemu/src/utils/elf-parser.c index bf7fb1d..afd1b45 100644 --- a/nemu/src/utils/elf-parser.c +++ b/nemu/src/utils/elf-parser.c @@ -27,13 +27,9 @@ 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 && strncmp(shstrtab + psh->sh_name, ".strtab", 8) == 0) { strtab = psh; - // printf("strtab: %u %u\n", strtab->sh_size, strtab->sh_offset); } - printf("section name: %s\n", shstrtab + psh->sh_name); - // if(symtab && strtab) break; }