PERFORCE change 57925 for review
Doug Rabson
dfr at FreeBSD.org
Thu Jul 22 08:42:11 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=57925
Change 57925 by dfr at dfr_home on 2004/07/22 15:41:26
Allocate all the initial load group from the static TLS
block even if they don't use static TLS relocations.
Affected files ...
.. //depot/projects/kse/libexec/rtld-elf/rtld.c#11 edit
Differences ...
==== //depot/projects/kse/libexec/rtld-elf/rtld.c#11 (text+ko) ====
@@ -245,6 +245,7 @@
Elf_Auxinfo *aux;
Elf_Auxinfo *auxp;
const char *argv0;
+ Objlist_Entry *entry;
Obj_Entry *obj;
Obj_Entry **preload_tail;
Objlist initlist;
@@ -411,6 +412,13 @@
/* setup TLS for main thread */
dbg("initializing initial thread local storage");
+ STAILQ_FOREACH(entry, &list_main, link) {
+ /*
+ * Allocate all the initial objects out of the static TLS
+ * block even if they didn't ask for it.
+ */
+ allocate_tls_offset(entry->obj);
+ }
allocate_initial_tls(&list_main);
/* Make a list of init functions to call. */
More information about the p4-projects
mailing list