From owner-p4-projects@FreeBSD.ORG Thu Jul 22 15:42:11 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1B2A916A4D0; Thu, 22 Jul 2004 15:42:11 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A1716A4CE for ; Thu, 22 Jul 2004 15:42:10 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD6A543D54 for ; Thu, 22 Jul 2004 15:42:10 +0000 (GMT) (envelope-from dfr@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6MFgARv005917 for ; Thu, 22 Jul 2004 15:42:10 GMT (envelope-from dfr@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6MFgA1X005914 for perforce@freebsd.org; Thu, 22 Jul 2004 15:42:10 GMT (envelope-from dfr@freebsd.org) Date: Thu, 22 Jul 2004 15:42:10 GMT Message-Id: <200407221542.i6MFgA1X005914@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to dfr@freebsd.org using -f From: Doug Rabson To: Perforce Change Reviews Subject: PERFORCE change 57925 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2004 15:42:11 -0000 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. */