diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-11-21 06:33:19 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-11-21 06:33:19 -0800 |
commit | 7e1be741255c40a2d71ea7c888eff39a3aaa32e9 (patch) | |
tree | c78a665d15bb6a1f22b63063f1f64545f351536d /elf/get-dynamic-info.h | |
parent | 86fe56bbdece927de2b0c6f122493e97ad12937a (diff) | |
download | glibc-7e1be741255c40a2d71ea7c888eff39a3aaa32e9.tar.gz glibc-7e1be741255c40a2d71ea7c888eff39a3aaa32e9.tar.xz glibc-7e1be741255c40a2d71ea7c888eff39a3aaa32e9.zip |
Check supported DF_1_XXX bits
Diffstat (limited to 'elf/get-dynamic-info.h')
-rw-r--r-- | elf/get-dynamic-info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/get-dynamic-info.h b/elf/get-dynamic-info.h index ffac75f635..9e018de6d2 100644 --- a/elf/get-dynamic-info.h +++ b/elf/get-dynamic-info.h @@ -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)]; } |