diff --git a/nemu/src/utils/elf-parser.c b/nemu/src/utils/elf-parser.c index 0b1e70f..875ff70 100644 --- a/nemu/src/utils/elf-parser.c +++ b/nemu/src/utils/elf-parser.c @@ -31,7 +31,7 @@ void init_elf(const char *path) { printf("strtab: %u %u\n", strtab->sh_size, strtab->sh_offset); } FAILED_GOTO(failed_shstrtab, fseek(elf_file, section_header[header.e_shstrndx].sh_offset, SEEK_SET) != 0); - printf("%u", section_header[header.e_shstrndx].sh_offset); + printf("%u\n", section_header[header.e_shstrndx].sh_offset); FAILED_GOTO(failed_shstrtab, fread(shstrtab, sizeof(Elf32_Sym), section_header[header.e_shstrndx].sh_size, elf_file) <= 0); // if(symtab && strtab) break; }