Skip to content

Commit 1022452

Browse files
committed
[ELFLOADER] Fixed regression from previous commit (for #1055)
1 parent 0886bb7 commit 1022452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elfs/elfloader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ EXPORT void PltResolver(x86emu_t* emu)
20762076
printf_dump(LOG_DEBUG, "symbol %s from %s but elf not initialized yet, run Init now (from %s)\n", symname, ElfName(sym_elf), ElfName(h));
20772077
RunElfInitPltResolver(sym_elf, emu);
20782078
}
2079-
if(sym && (sym->st_info&0xf)==STT_GNU_IFUNC) {
2079+
if(sym_elf && sym && ((sym->st_info&0xf)==STT_GNU_IFUNC)) {
20802080
// this is an IFUNC, needs to evaluate the function first!
20812081
printf_dump(LOG_DEBUG, " Indirect function, will call the resolver now at %p\n", (void*)offs);
20822082
offs = RunFunction(offs, 0);

0 commit comments

Comments
 (0)