From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3353 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Broken silent glibc-specific assumptions uncovered by musl Date: Sun, 19 May 2013 20:23:19 -0400 Message-ID: <20130520002319.GM20323@brightrain.aerifal.cx> References: <20130517173710.GA14240@brightrain.aerifal.cx> <20130518091820.GA6309@port70.net> <20130518141551.GD20323@brightrain.aerifal.cx> <20130518225147.GB6309@port70.net> <20130519220832.GI20323@brightrain.aerifal.cx> <20130520001705.GB1075@port70.net> 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 1369009414 17909 80.91.229.3 (20 May 2013 00:23:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 May 2013 00:23:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3357-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 20 02:23:33 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UeDsy-0006e1-1B for gllmg-musl@plane.gmane.org; Mon, 20 May 2013 02:23:32 +0200 Original-Received: (qmail 22111 invoked by uid 550); 20 May 2013 00:23:31 -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 22102 invoked from network); 20 May 2013 00:23:31 -0000 Content-Disposition: inline In-Reply-To: <20130520001705.GB1075@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3353 Archived-At: On Mon, May 20, 2013 at 02:17:05AM +0200, Szabolcs Nagy wrote: > * Rich Felker [2013-05-19 18:08:32 -0400]: > > On Sun, May 19, 2013 at 12:51:47AM +0200, Szabolcs Nagy wrote: > > > CHARSET (toutf8) > > > > What is toutf8? (Just curious) > > > > it is in libidn > "toutf8.c --- Convert strings from system locale into UTF-8." Oh. Speaking of which, we need to add IDN support at some point... > > > here (i386) constructors are put into .ctors.* sections > > > which get sorted by the linker > > > > How does this work for dynamic linking? Is priority only respected > > within a single DSO, and not between multiple DSOs? > > i think ordering is only guaranteed within a single dso > and this is not clearly documented Yes, I think that's the only approach that makes sense anyway. And it makes the whole ctor-priority system even more ugly because it causes program semantics to change depending on how the program is broken up into shared libraries, counteracting all the hard work ELF did to make dynamic linking transparent with respect to program semantics... Rich