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: Andreas Schwab <schwab at suse dot de>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: noloader at gmail dot com, Binutils <binutils at sourceware dot org>
- Date: Tue, 04 Jun 2019 15:36:24 +0200
- 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>
On Jun 04 2019, 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...
You would also need to change the runtime linker. It's part of the ABI.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."