From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 1ACA3396D83D for ; Wed, 8 Jun 2022 19:41:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1ACA3396D83D Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-653-W1h7TB3vOPOSHqPWMdu9Aw-1; Wed, 08 Jun 2022 15:41:22 -0400 X-MC-Unique: W1h7TB3vOPOSHqPWMdu9Aw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A767C1C18269; Wed, 8 Jun 2022 19:41:21 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.117]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE0AE2026D64; Wed, 8 Jun 2022 19:41:20 +0000 (UTC) From: Florian Weimer To: Adhemerval Zanella Cc: Adhemerval Zanella via Libc-alpha , Wilco Dijkstra Subject: Re: [PATCH 1/4] misc: Optimize internal usage of __libc_single_threaded References: <20220608164941.3325089-1-adhemerval.zanella@linaro.org> <20220608164941.3325089-2-adhemerval.zanella@linaro.org> <87wndrdp7p.fsf@oldenburg.str.redhat.com> <2bc8cf9f-7776-a32d-2c83-f34720f10d9f@linaro.org> Date: Wed, 08 Jun 2022 21:41:18 +0200 In-Reply-To: (Adhemerval Zanella's message of "Wed, 8 Jun 2022 16:00:04 -0300") Message-ID: <87a6andjtt.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2022 19:41:27 -0000 * Adhemerval Zanella: > Ok, I could make __libc_dlsym work with RTLD_DEFAULT, the trick is we need to > use global cope instead of local one. Doesn't L(dl_ns)[LM_ID_BASE]._ns_loaded work as the handle/link map? If it is about multiple namespaces, I think we can make pthread_create fail with ENOSYS in secondary namespaces. It is currently broken anyway. Thanks, Florian