> 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:13:26 up 0:11, 2 users, load average: 0.73, 0.63, 0.38
This commit is contained in:
parent
ce5e02c7c8
commit
efacd975fc
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ void init_elf(const char *path) {
|
|||
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)) {
|
||||
} 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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue