This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Is '$ORIGIN' supposed to work within DT_NEEDED sections?
- From: Sasha Unknown <sasha2048 at gmail dot com>
- To: Cary Coutant <ccoutant at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Fri, 2 Dec 2016 19:04:57 +0200
- Subject: Re: Is '$ORIGIN' supposed to work within DT_NEEDED sections?
- Authentication-results: sourceware.org; auth=none
- References: <23ad2fb0-fb69-aae6-0199-144d59e08d05@gmail.com> <c43852e6-45f1-2965-4238-702f0ce16188@redhat.com> <a2ca5267-927b-f2f8-7049-45b57159a62c@gmail.com> <CAJimCsF2smg8JQqX=cGeCuK_TiAD6k2R8rapuHP7iGYMTWidEg@mail.gmail.com> <b9c38158-5fb6-9dc2-b282-f09fca0994c2@gmail.com> <CAJimCsEqywH5ySa452W-7z8ihpD6uN03uNGhyp_J=JgZsD1xNg@mail.gmail.com>
Thanks. Probably, you're right. I missed that point.
(But then assertion-failure or segmentation-fault occurring when using
together $ORIGIN and versioning is libc bug anyway, isn't it?)
On 02.12.16 18:08, Cary Coutant wrote:
From the link you pointed:
"$ORIGIN sequences within a DT_NEEDED entry or path passed as a parameter to
dlopen() are treated as errors."
You're taking that out of context. This is the case only for setuid or
setgid programs.
-cary