diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-17 17:38:26 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-17 17:38:26 +0000 |
commit | 35ba293e9b1ac52c9a993df5d105273f386dd31e (patch) | |
tree | bf95461cfe0af11f834bcbfb361fbeae70dabb45 /toolchain | |
parent | 11633b5eba3cb1751d1dfae6e77a5b8f54328e26 (diff) | |
download | upstream-35ba293e9b1ac52c9a993df5d105273f386dd31e.tar.gz upstream-35ba293e9b1ac52c9a993df5d105273f386dd31e.tar.bz2 upstream-35ba293e9b1ac52c9a993df5d105273f386dd31e.zip |
uClibc: fix issues with libpthread vs libc link order on mips
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26702 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/uClibc/patches-0.9.32/210-mips_fix_symbol_lookup.patch | 13 |
1 files changed, 13 insertions, 0 deletions
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 0000000000..f97d3cb765 --- /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++; |