[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $ORIGIN substitution in RPATH
From: |
Bruno Haible |
Subject: |
Re: $ORIGIN substitution in RPATH |
Date: |
Sat, 23 Feb 2019 21:27:41 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
Hi Samuel,
> > I am 'root', and the executable as well as the shared library are
> > executable. Where does the 'Permission denied' error come from?
>
> That's because initscripts unexpectedly mounts a tmpfs on /tmp, while
> that doesn't apparently properly support program execution yet
Indeed. And setting RAMTMP to no in /etc/default/tmpfs does not help.
> To circumvent this you can set RAMSHM to no in /etc/default/tmpfs (yes,
> RAMSHM, it's not a typo).
This works, indeed. The comments in this configuration file apparently
don't match the reality!
Anyway, now running a program built with $ORIGIN in rpath works fine.
I've added support for it in gnulib:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=015c30cac9dffe6e53a7f3bedc22e462c54150ed
However, ldd does not grok it. Reported as
<https://sourceware.org/bugzilla/show_bug.cgi?id=24260>.
Bruno
Re: $ORIGIN substitution in RPATH, Bruno Haible, 2019/02/23