1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Check supported DF_1_XXX bits

This commit is contained in:
H.J. Lu
2012-11-21 06:33:19 -08:00
parent 86fe56bbde
commit 7e1be74125
4 changed files with 33 additions and 0 deletions

View File

@ -151,6 +151,9 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
{
l->l_flags_1 = info[VERSYMIDX (DT_FLAGS_1)]->d_un.d_val;
/* Only DT_1_SUPPORTED_MASK bits are allowed. */
assert ((l->l_flags_1 & ~DT_1_SUPPORTED_MASK) == 0);
if (l->l_flags_1 & DF_1_NOW)
info[DT_BIND_NOW] = info[VERSYMIDX (DT_FLAGS_1)];
}