This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Alternate character for dollar sign in $ORIGIN?
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 4 Jun 2019 09:50:41 -0400
- Subject: Re: Alternate character for dollar sign in $ORIGIN?
- References: <CAH8yC8nMzTeAWUVa6c=Y504tXZUbdq0aMJmVXbv29+L9Sh_y=g@mail.gmail.com> <1461b09c-ea04-4b9b-9ca8-6c57446e0ffc@redhat.com>
- Reply-to: noloader at gmail dot com
On Tue, Jun 4, 2019 at 9:20 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi Jeffrey,
>
> > Does GNU allow an alternate character?
>
> No. :-(
>
> The relevant code is in ..._search_needed() in ld/emultempl/elf32.em
> where there is:
>
> while ((var = strchr (filename + offset, '$')) != NULL)
>
> So either you are going to have to get creative about escaping the dollar
> sign, or else generate a patch for the linker...
>
> If you do decide to go the patch route, then please remember to include
> an update to the documentation (in the -rpath-link entry in the ld.texi
> file) and an entry in the ld/NEWS file. It would also be nice if you
> could think of a way to add an entry to the linker testsuite for this
> feature, although that may prove to be rather difficult.
Thanks Nick.
You don't want me writing patches for Binutils. Things would be broke
worse than they are now :)
Jeff