summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch
blob: f97d3cb765f745ce289cd092493c21544adecd01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/ldso/ldso/mips/elfinterp.c
+++ b/ldso/ldso/mips/elfinterp.c
@@ -378,8 +378,9 @@ void _dl_perform_mips_global_got_relocat
 					*got_entry += (unsigned long) tpnt->loadaddr;
 			}
 			else {
+				struct symbol_ref sym_ref = { sym, NULL };
 				*got_entry = (unsigned long) _dl_find_hash(strtab +
-					sym->st_name, tpnt->symbol_scope, tpnt, ELF_RTYPE_CLASS_PLT, NULL);
+					sym->st_name, tpnt->symbol_scope, tpnt, ELF_RTYPE_CLASS_PLT, &sym_ref);
 			}
 
 			got_entry++;