From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1592 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Todo for release? Date: Wed, 15 Aug 2012 08:36:40 -0400 Message-ID: <20120815123640.GK27715@brightrain.aerifal.cx> References: <20120813185329.GA20024@brightrain.aerifal.cx> <20120815040836.GJ27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1345034147 24212 80.91.229.3 (15 Aug 2012 12:35:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 12:35:47 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1593-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 15 14:35:46 2012 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 1T1cp4-0001Kq-Qb for gllmg-musl@plane.gmane.org; Wed, 15 Aug 2012 14:35:42 +0200 Original-Received: (qmail 24342 invoked by uid 550); 15 Aug 2012 12:35:38 -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 24333 invoked from network); 15 Aug 2012 12:35:38 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1592 Archived-At: On Wed, Aug 15, 2012 at 10:55:06AM +0200, Daniel Cegiełka wrote: > > > >> - Support for __progname (Daniel) > > > > Daniel, any more thoughts on this? Are there lots of programs that > > want it that can't easily be patched to simply use argv[0] themselves? > > This is not something that is absolutely necessary. __progname quite > often is used on *BSD and less on Linux (eg. Owl's msulogin, > popa3d)... but __progname is always easy to fix. My leaning is to omit it at least for now then. > Here we have the OpenBSD repo and content /bin directories: > > http://www.openbsd.org/cgi-bin/cvsweb/src/bin/ > > And here's a list of programs (from /bin/) that require __progname (70% of all): This might be a little bit inflated if it includes programs which detected the presence of __progname at build time and only used it because of that. > For __progname we probably need to modify (asm) files in the musl/crt/. No, the only thing that belongs there is the minimum code to get argc, argv, the addresses of main, _init, _fini, and jump to __libc_start_main. The latter is responsible for things like __progname. If the code were put in crt1.o, all programs would have a reference to __progname encoded into them, which is not something desirable; it would also increase the amount of per-arch code that must be maintained. Rich