From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8860 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: undef SHARED, and refactoring dynlink.c Date: Sun, 15 Nov 2015 23:05:55 -0500 Message-ID: <20151116040554.GP3818@brightrain.aerifal.cx> References: <20151115004942.GA31291@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1447646776 1462 80.91.229.3 (16 Nov 2015 04:06:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 04:06:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8873-gllmg-musl=m.gmane.org@lists.openwall.com Mon Nov 16 05:06:15 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZyB3U-0008Q2-Nl for gllmg-musl@m.gmane.org; Mon, 16 Nov 2015 05:06:12 +0100 Original-Received: (qmail 18285 invoked by uid 550); 16 Nov 2015 04:06:09 -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 18263 invoked from network); 16 Nov 2015 04:06:08 -0000 Content-Disposition: inline In-Reply-To: <20151115004942.GA31291@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8860 Archived-At: On Sat, Nov 14, 2015 at 07:49:42PM -0500, Rich Felker wrote: > As part of the same project, since the dlstart.c code does not belong > in libc.a and thus not in src/*, I'd like to move it to crt/rcrt1.c, > and then have ldso/dlstart.c include ../crt/rcrt1.c, with some macros > defined to adapt it to act as the dynamic linker entry point. This > reverses the current direction of inclusion and makes the preprocessor > logic less messy, I think. I'll probably omit this change. I tried it and it didn't simplify anything and perhaps made some of the preprocessor logic uglier. Rich