Date: Thu, 22 Jul 2004 15:42:10 GMT From: Doug Rabson <dfr@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 57925 for review Message-ID: <200407221542.i6MFgA1X005914@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57925 Change 57925 by dfr@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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407221542.i6MFgA1X005914>