aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 68b45ef..c71a142 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -844,7 +844,8 @@ elf_gnu_ifunc_resolve_by_got (const char *name, CORE_ADDR *addr_p)
gdb_byte *buf = (gdb_byte *) alloca (ptr_size);
bound_minimal_symbol msym
- = lookup_minimal_symbol (name_got_plt, objfile);
+ = lookup_minimal_symbol (current_program_space, name_got_plt,
+ objfile);
if (msym.minsym == NULL)
return 0;
if (msym.minsym->type () != mst_slot_got_plt)