From e6d9378e257d45d41f928292bb48fd3cace4257d Mon Sep 17 00:00:00 2001
From: Manuel Novoa III <mjn3@codepoet.org>
Date: Fri, 20 Feb 2004 02:36:23 +0000
Subject: Patch by Joakim Tjernlund <joakim.tjernlund@lumentis.se>, which got
 mips mostly working.  From there, I tracked the bash failure to a bad
 _dl_atexit address and Erik took it from there.

---
 ldso/ldso/mips/elfinterp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ldso')

diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c
index 3cb7fdb60..5be0421e4 100644
--- a/ldso/ldso/mips/elfinterp.c
+++ b/ldso/ldso/mips/elfinterp.c
@@ -301,7 +301,7 @@ void _dl_perform_mips_global_got_relocations(struct elf_resolve *tpnt)
 			}
 			else {
 				*got_entry = (unsigned long) _dl_find_hash(strtab +
-					sym->st_name, tpnt->symbol_scope, ELF_RTYPE_CLASS_COPY);
+					sym->st_name, tpnt->symbol_scope, ELF_RTYPE_CLASS_PLT);
 			}
 
 			got_entry++;
-- 
cgit v1.2.3