Alternate character for dollar sign in $ORIGIN?

Andreas Schwab schwab@suse.de
Tue Jun 4 13:36:00 GMT 2019


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



More information about the Binutils mailing list