From 332d091eba65d819723cce5ffee19075b1890e9d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 11 May 2012 20:47:51 +0000 Subject: [PATCH] Update sysdeps/mips/dl-lookup.c from generic version. --- ChangeLog.mips | 4 ++++ sysdeps/mips/dl-lookup.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.mips b/ChangeLog.mips index 8942283..eb61f04 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,7 @@ +2012-05-11 Joseph Myers + + * sysdeps/mips/dl-lookup.c: Update from generic version. + 2012-05-08 Joseph Myers * sysdeps/mips/fpu/libm-test-ulps: Move to ... diff --git a/sysdeps/mips/dl-lookup.c b/sysdeps/mips/dl-lookup.c index c39a2b0..f7e98b7 100644 --- a/sysdeps/mips/dl-lookup.c +++ b/sysdeps/mips/dl-lookup.c @@ -14,7 +14,7 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see + License along with the GNU C Library; if not, see . */ #include @@ -786,7 +786,8 @@ _dl_lookup_symbol_x (const char *undef_name, struct link_map *undef_map, if (__builtin_expect (current_value.s == NULL, 0)) { if ((*ref == NULL || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK) - && skip_map == NULL) + && skip_map == NULL + && !(GLRO(dl_debug_mask) & DL_DEBUG_UNUSED)) { /* We could find no value for a strong reference. */ const char *reference_name = undef_map ? undef_map->l_name : ""; -- 2.7.4