public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
To: Mike Frysinger <vapier@gentoo.org>
Cc: libc-alpha@sourceware.org,  shenhan@chromium.org
Subject: Re: [PATCH] ld.so: add an --argv0 option
Date: Sat, 23 Apr 2016 12:21:00 -0000	[thread overview]
Message-ID: <87mvokjz1u.fsf@mid.deneb.enyo.de> (raw)
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")

* 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.

  reply	other threads:[~2016-04-23 12:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-23  5:28 Mike Frysinger
2016-04-23 12:21 ` Florian Weimer [this message]
2016-04-23 20:06   ` Mike Frysinger
2016-04-24 12:21     ` Florian Weimer
2020-07-22  8:33 Vincent Mihalkovic
2020-07-22  9:00 ` Florian Weimer
2020-07-26 20:00   ` Vincent Mihalkovic
2020-07-27  5:54     ` Florian Weimer
2020-08-12 11:06 Vincent Mihalkovic
2020-08-25 15:10 ` Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mvokjz1u.fsf@mid.deneb.enyo.de \
    --to=fw@deneb.enyo.de \
    --cc=libc-alpha@sourceware.org \
    --cc=shenhan@chromium.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).