Ignore negative dynamic entry types.

This commit is contained in:
Andreas Schwab 2010-01-18 07:23:23 -08:00 committed by Ulrich Drepper
parent 64f388285e
commit 7a033a828d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-18 Andreas Schwab <schwab@redhat.com>
* elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
dynamic entry types.
2010-01-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the

View File

@ -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)