From aec6b246ee12824b8423885c9c445c869d86876e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 24 May 2006 19:25:43 +0000 Subject: [BZ #2683] 2006-05-24 Ulrich Drepper [BZ #2683] * elf/dl-addr.c (_dl_addr): Don't match undefined references. --- ChangeLog | 5 +++++ elf/dl-addr.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3de745cf0d..9fc6dc445b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-24 Ulrich Drepper + + [BZ #2683] + * elf/dl-addr.c (_dl_addr): Don't match undefined references. + 2006-05-23 Ulrich Drepper * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of diff --git a/elf/dl-addr.c b/elf/dl-addr.c index fa62e40840..ced8978eb3 100644 --- a/elf/dl-addr.c +++ b/elf/dl-addr.c @@ -1,5 +1,5 @@ /* Locate the shared object symbol nearest a given address. - Copyright (C) 1996-2004, 2005 Free Software Foundation, Inc. + Copyright (C) 1996-2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -92,6 +92,7 @@ _dl_addr (const void *address, Dl_info *info, #if defined USE_TLS && ELFW(ST_TYPE) (symtab->st_info) != STT_TLS #endif + && symtab->st_shndx != SHN_UNDEF && DL_ADDR_SYM_MATCH (match, symtab, matchsym, addr) && symtab->st_name < strtabsize) matchsym = (ElfW(Sym) *) symtab; -- cgit v1.2.1