From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16741 invoked by alias); 23 Apr 2016 12:21:40 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 16722 invoked by uid 89); 23 Apr 2016 12:21:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: albireo.enyo.de From: Florian Weimer To: Mike Frysinger Cc: libc-alpha@sourceware.org, shenhan@chromium.org Subject: Re: [PATCH] ld.so: add an --argv0 option References: <1461389300-29574-1-git-send-email-vapier@gentoo.org> Date: Sat, 23 Apr 2016 12:21:00 -0000 In-Reply-To: <1461389300-29574-1-git-send-email-vapier@gentoo.org> (Mike Frysinger's message of "Sat, 23 Apr 2016 01:28:20 -0400") Message-ID: <87mvokjz1u.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2016-04/txt/msg00583.txt.bz2 * Mike Frysinger: > Sometimes when you run a program you want the argv[0] string passed to > the app to be different than the actual path you used to load it. We > can't do this today with invoking via ld.so which can be limiting -- > some programs like to inspect their argv[0] and make decisions as to > how it should (re)exec itself or helper tools. For example, clang and > gcc both do argv[0] inspection to support relocatable toolchains. Interesting idea. I think it's sufficiently to include this, but it needs a ChangeLog entry and a test case.