From 7f07b8deffa7eaea0cbab9e84503b7644a6b6f8e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 22 Dec 2008 09:58:25 +0000 Subject: - non-pic support for MIPS (Catherine Moore, clm at codesourcery com) --- ldso/ldso/dl-hash.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ldso/ldso/dl-hash.c') diff --git a/ldso/ldso/dl-hash.c b/ldso/ldso/dl-hash.c index b44bd3a4b..a251aaff3 100644 --- a/ldso/ldso/dl-hash.c +++ b/ldso/ldso/dl-hash.c @@ -160,6 +160,11 @@ check_match (const ElfW(Sym) *sym, char *strtab, const char* undef_name, int typ /* undefined symbol itself */ return NULL; +#ifdef __mips__ + if (sym->st_shndx == SHN_UNDEF && !(sym->st_other & STO_MIPS_PLT)) + return NULL; +#endif + if (sym->st_value == 0) /* No value */ return NULL; -- cgit v1.2.3