[uClibc-cvs] uClibc/ldso/ldso/mips elfinterp.c,1.13,1.14
Erik Andersen
andersen at uclibc.org
Tue May 11 07:21:49 UTC 2004
Update of /var/cvs/uClibc/ldso/ldso/mips
In directory nail:/tmp/cvs-serv8849
Modified Files:
elfinterp.c
Log Message:
Bradley D. LaRonde, brad at laronde dot org writes:
If I change that ELF_RTYPE_CLASS_COPY to ELF_RTYPE_CLASS_PLT to tell
_dl_find_hash to ignore stubs when resolving undefined functions without
stubs, the dlopen tests all pass. dlopen gets a pointer to the libc.so
malloc instead of a pointer to the libpthread malloc stub. Yay! :-)
Index: elfinterp.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/mips/elfinterp.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- a/elfinterp.c 20 Feb 2004 02:36:23 -0000 1.13
+++ b/elfinterp.c 11 May 2004 07:21:47 -0000 1.14
@@ -285,7 +285,7 @@
*got_entry = sym->st_value + (unsigned long) tpnt->loadaddr;
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);
}
}
else if (sym->st_shndx == SHN_COMMON) {
More information about the uClibc-cvs
mailing list