From 082ab53ed1f00657d9e82457f6e4125734196319 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 17 Apr 2011 17:38:26 +0000 Subject: uClibc: fix issues with libpthread vs libc link order on mips SVN-Revision: 26702 --- .../uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 toolchain/uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch (limited to 'toolchain/uClibc') diff --git a/toolchain/uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch b/toolchain/uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch new file mode 100644 index 0000000..f97d3cb --- /dev/null +++ b/toolchain/uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch @@ -0,0 +1,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++; -- cgit v1.1