This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
Re: [Bug libc/16124] New: ld.so should allow to change argv[0]
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: "piotr.roszatycki at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- Cc: glibc-bugs at sourceware dot org
- Date: Tue, 5 Nov 2013 19:14:52 +0100
- Subject: Re: [Bug libc/16124] New: ld.so should allow to change argv[0]
- Authentication-results: sourceware.org; auth=none
- References: <bug-16124-131 at http dot sourceware dot org/bugzilla/>
On Tue, Nov 05, 2013 at 06:04:33PM +0000, piotr.roszatycki at gmail dot com wrote:
>
> Any program can be started via dynamic loader explicitly, ie.
> /lib64/ld-linux-x86-64.so.2. Unfortunately, there is no possibility to change
> argv[0]. It makes this loader not so useful as it might be.
>
> It would be nice if ld.so had an additional option which would replace argv[0].
>
Changing argv[0] is lying about binary name, how this would be used?