Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5469137imu; Mon, 26 Nov 2018 00:29:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WRdcMOGyv8j7n6R+bnsBU2UtTX1ogutSdGuN4bY6Fehf98ruIRLhhwih5p80v++MLBrJ/0 X-Received: by 2002:a17:902:2ec1:: with SMTP id r59-v6mr20284687plb.61.1543220989859; Mon, 26 Nov 2018 00:29:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543220989; cv=none; d=google.com; s=arc-20160816; b=rEFuLEfyIVyzkKEAUJAkAmvorbdJtbLC3lzeE7Pd+PGPsttC5alMJnFrRWA+zRUr+W Am3Wrtn73zlva3QNnAeOLab8EuZS+zENzgSmWNUWBQDbpQ8k+sUdOkkeRHBRS6Cw+pXh cePEwy9QtUzEBuoiB175Wa/UdafHh50bSiRl9GI5L7kVbMNdJtbrC41UQwUJm3FIcAKc EWTAMy8y/8TbR5eSIbVeKN1/kZtsGds8ZXiRVIVAhxaK+FKvj1QKDfn0TMMnhvzjpwvt VR1NM/BWoccC3PpDAX9rvyypgTJ8gUYE4xWrrCRy+yC4BmF7x1LLlYni+2yFjGVpI79R 7cAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=JFBp12aK56etBaEPU1NxumsXDm3L+UEMEtCmKuWc/Fs=; b=snQqp6vxNS6sv7S1BwtcEVGufyjPxxGQT/JWcoqjqNd7qqPK6ic3kjwJAutbI+c2th AP3AARmjl/XeEcpJIbpvLiQJ8jsAtFy8fEkSDP0z60qB13fNRywEWOqajZ9v0NW+FEkb tdVIRdMAe6HIZCj29aLI2mGnsSlOo58RcsrEFarGXGTPcb6tJ677gBwifVRcz14tGnne /7udq2kDA+v+qmX2mUn/1RmOdPLxyVDTQS0SaYJYHnXseWw6II1eKcBMxNhLWM9THkZ5 Ne8OS0PLqxxmEl00kJTEanV3i2Wp8MU80vcgtNJII2RAG4ulMueQUZ0UpctlYoglBVqS MflA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si19223813pgf.579.2018.11.26.00.29.35; Mon, 26 Nov 2018 00:29:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726542AbeKZTWL (ORCPT + 99 others); Mon, 26 Nov 2018 14:22:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42808 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbeKZTWK (ORCPT ); Mon, 26 Nov 2018 14:22:10 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 211A32D80B; Mon, 26 Nov 2018 08:28:48 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-117-10.ams2.redhat.com [10.36.117.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AEB931054FAE; Mon, 26 Nov 2018 08:28:42 +0000 (UTC) From: Florian Weimer To: Mathieu Desnoyers Cc: Rich Felker , carlos , Joseph Myers , Szabolcs Nagy , libc-alpha , Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , linux-kernel , linux-api Subject: Re: [RFC PATCH v4 1/5] glibc: Perform rseq(2) registration at nptl init and thread creation References: <20181121183936.8176-1-mathieu.desnoyers@efficios.com> <20181122171010.GH23599@brightrain.aerifal.cx> <871s7cvt1l.fsf@oldenburg.str.redhat.com> <20181123142843.GJ23599@brightrain.aerifal.cx> <1150466925.11664.1542992720871.JavaMail.zimbra@efficios.com> <20181123173019.GK23599@brightrain.aerifal.cx> <865273158.11687.1542995541389.JavaMail.zimbra@efficios.com> <20181123183558.GM23599@brightrain.aerifal.cx> <1758017676.12041.1543007347347.JavaMail.zimbra@efficios.com> Date: Mon, 26 Nov 2018 09:28:34 +0100 In-Reply-To: <1758017676.12041.1543007347347.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Fri, 23 Nov 2018 16:09:07 -0500 (EST)") Message-ID: <87bm6cqm31.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 26 Nov 2018 08:28:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers: > Using a "weak" symbol in early adopter libraries is important, so they > can be loaded together into the same process without causing loader > errors due to many definitions of the same strong symbol. This is not how ELF dynamic linking works. If the symbol name is the same, one definition interposes the others. You need to ensure that the symbol has the same size everywhere, though. There are some tricky interactions with symbol versions, too. (The interposing libraries must not use symbol versioning.) Thanks, Florian