summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-05-31 15:10:35 +0000
committerJakub Jelinek <jakub@redhat.com>2006-05-31 15:10:35 +0000
commit2774ea772499f5779e846646824784a44377c69a (patch)
tree8c23b862c87c0056b7ef8296f527ca580d5e15a5 /elf
parente482d83fb7eedcb449bfe80a6aa240cbd114c571 (diff)
downloadglibc-2774ea772499f5779e846646824784a44377c69a.tar.gz
Updated to fedora-glibc-20060531T1322cvs/fedora-glibc-2_4_90-11
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-addr.c3
1 files changed, 2 insertions, 1 deletions
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;