From ec70c011557d0964dfc528d2d326d75526aec123 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 6 Feb 2002 00:55:46 +0000 Subject: Update. * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically loading modules with the DF_STATIC_TLS flag set. * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags element. * include/link.h (struct link_map): Add l_flags field. * elf/elf.h (DF_STATIC_TLS): New definition. --- elf/dynamic-link.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'elf/dynamic-link.h') diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h index f352997..0229684 100644 --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h @@ -117,12 +117,12 @@ elf_get_dynamic_info (struct link_map *l) /* Flags are used. Translate to the old form where available. Since these l_info entries are only tested for NULL pointers it is ok if they point to the DT_FLAGS entry. */ - ElfW(Word) flags = info[DT_FLAGS]->d_un.d_val; - if (flags & DF_SYMBOLIC) + l->l_flags = info[DT_FLAGS]->d_un.d_val; + if l->l_(flags & DF_SYMBOLIC) info[DT_SYMBOLIC] = info[DT_FLAGS]; - if (flags & DF_TEXTREL) + if l->l_(flags & DF_TEXTREL) info[DT_TEXTREL] = info[DT_FLAGS]; - if (flags & DF_BIND_NOW) + if (l->l_flags & DF_BIND_NOW) info[DT_BIND_NOW] = info[DT_FLAGS]; } #endif -- cgit v1.1