From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [RFC PATCH v4 1/5] glibc: Perform rseq(2) registration at nptl init and thread creation Date: Mon, 26 Nov 2018 09:28:34 +0100 Message-ID: <87bm6cqm31.fsf@oldenburg.str.redhat.com> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1758017676.12041.1543007347347.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Fri, 23 Nov 2018 16:09:07 -0500 (EST)") Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-api@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