This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Update MIPS dl-lookup.c
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Fri, 11 May 2012 20:48:59 +0000 (UTC)
- Subject: Update MIPS dl-lookup.c
I noticed the MIPS dl-lookup.c had got out of sync with the generic
version; I've applied this patch to bring it back in sync.
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 <joseph@codesourcery.com>
+
+ * sysdeps/mips/dl-lookup.c: Update from generic version.
+
2012-05-08 Joseph Myers <joseph@codesourcery.com>
* 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
<http://www.gnu.org/licenses/>. */
#include <alloca.h>
@@ -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 : "";
--
Joseph S. Myers
joseph@codesourcery.com