about summary refs log tree commit diff
path: root/elf/dynamic-link.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-06 00:55:46 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-06 00:55:46 +0000
commitec70c011557d0964dfc528d2d326d75526aec123 (patch)
treeca3440c580f185559c2d0508f968f27ee1630b45 /elf/dynamic-link.h
parent472d82fc06664bea2859cb94b4469c48af2d10d1 (diff)
downloadglibc-ec70c011557d0964dfc528d2d326d75526aec123.tar.gz
glibc-ec70c011557d0964dfc528d2d326d75526aec123.tar.xz
glibc-ec70c011557d0964dfc528d2d326d75526aec123.zip
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.
Diffstat (limited to 'elf/dynamic-link.h')
-rw-r--r--elf/dynamic-link.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index f3529970a1..0229684009 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