This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ld.so: add an --argv0 option


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]