uClibc: fix issues with libpthread vs libc link order on mips
[openwrt/svn-archive/archive.git] / toolchain / uClibc / patches-0.9.32 / 210-mips_fix_symbol_lookup.patch
1 --- a/ldso/ldso/mips/elfinterp.c
2 +++ b/ldso/ldso/mips/elfinterp.c
3 @@ -378,8 +378,9 @@ void _dl_perform_mips_global_got_relocat
4 *got_entry += (unsigned long) tpnt->loadaddr;
5 }
6 else {
7 + struct symbol_ref sym_ref = { sym, NULL };
8 *got_entry = (unsigned long) _dl_find_hash(strtab +
9 - sym->st_name, tpnt->symbol_scope, tpnt, ELF_RTYPE_CLASS_PLT, NULL);
10 + sym->st_name, tpnt->symbol_scope, tpnt, ELF_RTYPE_CLASS_PLT, &sym_ref);
11 }
12
13 got_entry++;