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
committerPetr Baudis <pasky@ucw.cz>2010-05-12 01:27:29 +0200
commite73ad37f1571c67eaa0ea503ae91412f1d7abc6d (patch)
tree6caf6c99a42db1f6f7f4b3b6d76051420dc0d653 /elf
parent8c55b16c2f2c1fcbfe83916b598ed8c42a70350d (diff)
downloadglibc-e73ad37f1571c67eaa0ea503ae91412f1d7abc6d.tar.gz
glibc-e73ad37f1571c67eaa0ea503ae91412f1d7abc6d.tar.xz
glibc-e73ad37f1571c67eaa0ea503ae91412f1d7abc6d.zip
Ignore negative dynamic entry types.
(cherry picked from commit 7a033a828df19b4f3bfd7e4d66102f63d1167f08)
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)