From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5702 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: reserved symbol violations Date: Sat, 2 Aug 2014 13:34:31 -0400 Message-ID: <20140802173431.GT1674@brightrain.aerifal.cx> References: <1406996883.8274.181.camel@eris.loria.fr> <20140802163743.GS1674@brightrain.aerifal.cx> <1406998620.8274.183.camel@eris.loria.fr> 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 1407000893 9354 80.91.229.3 (2 Aug 2014 17:34:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2014 17:34:53 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5707-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 02 19:34:45 2014 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 1XDdCf-00053y-Cm for gllmg-musl@plane.gmane.org; Sat, 02 Aug 2014 19:34:45 +0200 Original-Received: (qmail 5945 invoked by uid 550); 2 Aug 2014 17:34:44 -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 5937 invoked from network); 2 Aug 2014 17:34:44 -0000 Content-Disposition: inline In-Reply-To: <1406998620.8274.183.camel@eris.loria.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5702 Archived-At: On Sat, Aug 02, 2014 at 06:57:00PM +0200, Jens Gustedt wrote: > Am Samstag, den 02.08.2014, 12:37 -0400 schrieb Rich Felker: > > On Sat, Aug 02, 2014 at 06:28:03PM +0200, Jens Gustedt wrote: > > > Hi, > > > by digging into the symbols that are dragged into a C11 thread > > > executable I noticed that there are some hotspots that should perhaps > > > be worth looking at. I attach a file that summarizes the findings. > > > > > > One is simple, I'd change the reference to clock_gettime in > > > __timedwait to __clock_gettime. > > > > That's fine. > > ok > > > I have no idea how to make it get linked only if both are used, and I > > suspect it's impossible. However, there's no namespace violation here; > > setrlimit and set*id are from POSIX, not ISO C. So it's just excess > > bloat. > > Hm, even inside POSIX this is not conforming, I think. POSIX has a > quite precise idea which headers make which symbols visible. Headers and "making it visible" are not involved here. See XBD 2.2.2 The Name Space: The following identifiers are reserved regardless of the inclusion of headers: 4. All functions and external identifiers defined in XBD Headers are reserved for use as identifiers with external linkage. 5. All the identifiers defined in this volume of POSIX.1-2008 that have external linkage are always reserved for use as identifiers with external linkage. Rich