From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/539 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Dynamic linker refactoring Date: Fri, 20 Jan 2012 20:05:54 -0500 Message-ID: <20120121010554.GA8306@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1327109211 973 80.91.229.12 (21 Jan 2012 01:26:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2012 01:26:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-540-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jan 21 02:26:47 2012 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1RoPjC-000690-QL for gllmg-musl@lo.gmane.org; Sat, 21 Jan 2012 02:26:46 +0100 Original-Received: (qmail 27987 invoked by uid 550); 21 Jan 2012 01:26:46 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27979 invoked from network); 21 Jan 2012 01:26:46 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:539 Archived-At: Hi all, After the recent dynamic linker fixes, I've looked into refactoring (mainly eliminating logic duplication) and cleaning up the dynamic linker. As a heads-up, I'm leaning towards stripping out the vdso (linux-gate) support at the dynamic linker level entirely, and instead using Nik's original design for vdso-assisted clock_gettime which can work with static linking too. This cuts out some complexity and code duplication in the dynamic linker (at the expense of duplicating the same code elsewhere for use outside the dynamic linker), but the real benefit is that we don't have to worry about the kernel devs doing something stupid and polluting the userspace symbol namespace (and potentially redirecting functions to do the wrong thing) if they add stuff to the vdso that doesn't belong there. If anyone's against these changes or wants to discuss them more, please reply in this thread in the next day or so.. Rich