From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11648 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Question about setting argv[0] when manually using dynamic linker Date: Tue, 4 Jul 2017 16:58:11 -0400 Message-ID: <20170704205811.GN1627@brightrain.aerifal.cx> References: <20170517070115.GL6320@example.net> <20170517162428.GH17319@brightrain.aerifal.cx> <20170702173618.GL27260@example.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1499201911 6897 195.159.176.226 (4 Jul 2017 20:58:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2017 20:58:31 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11661-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 04 22:58:25 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dSUto-0001IS-Fb for gllmg-musl@m.gmane.org; Tue, 04 Jul 2017 22:58:20 +0200 Original-Received: (qmail 12008 invoked by uid 550); 4 Jul 2017 20:58:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11987 invoked from network); 4 Jul 2017 20:58:23 -0000 Content-Disposition: inline In-Reply-To: <20170702173618.GL27260@example.net> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11648 Archived-At: On Sun, Jul 02, 2017 at 07:36:19PM +0200, u-uy74@aetey.se wrote: > On Wed, May 17, 2017 at 12:24:28PM -0400, Rich Felker wrote: > > a completely reasonable and recommended way for deploying dynamic > > linked apps in a self-contained way that doesn't depend on musl libc > > on the host. Unfortunately there's no way to set argv[0] like you want > > at this time. Perhaps adding an option like --argv0=foo would be > > appropriate. > > Is this option being considered to introduce? > > It is apparently crucial for certain cases, and definitely useful > even when it is within reach to influence/patch the programs relying > on argv[0]. Yes, adding it. Rich