about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-01-18 07:23:23 -0800
committerUlrich Drepper <drepper@redhat.com>2010-01-18 07:23:23 -0800
commit7a033a828df19b4f3bfd7e4d66102f63d1167f08 (patch)
treea5cc30891081bb1774a07e8bd659faad4a88c6e7 /elf
parent64f388285e11812f041d3aa8347f82efde4033c1 (diff)
downloadglibc-7a033a828df19b4f3bfd7e4d66102f63d1167f08.tar.gz
glibc-7a033a828df19b4f3bfd7e4d66102f63d1167f08.tar.xz
glibc-7a033a828df19b4f3bfd7e4d66102f63d1167f08.zip
Ignore negative dynamic entry types.
Diffstat (limited to 'elf')
-rw-r--r--elf/dynamic-link.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index c34cbcd43b..dff06556a7 100644
--- a/elf/dynamic-link.h
+++ b/elf/dynamic-link.h
@@ -113,7 +113,7 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
 
   while (dyn->d_tag != DT_NULL)
     {
-      if (dyn->d_tag < DT_NUM)
+      if ((Elf32_Word) dyn->d_tag < DT_NUM)
 	info[dyn->d_tag] = dyn;
       else if (dyn->d_tag >= DT_LOPROC &&
 	       dyn->d_tag < DT_LOPROC + DT_THISPROCNUM)