This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/23102] Incorrect parsing of multiple consecutive $variable patterns in runpath entries (e.g. $ORIGIN$ORIGIN)


https://sourceware.org/bugzilla/show_bug.cgi?id=23102

--- Comment #1 from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail dot Com> ---
The example had typo for test3. It should be:

$ gcc -o test3 -x c - <<< "int main() {}" -Ltmp/tests -lA
-Wl,-rpath,'$ORIGIN${ORIGIN}'
$ readelf -dW test3 | grep RUNPATH
 0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN${ORIGIN}]
$ ./test3
./test3: error while loading shared libraries: libA.so: cannot open shared
object file: No such file or directory
$ ldd test3
        linux-vdso.so.1 (0x00007ffdf3a94000)
        libA.so => not found
        libc.so.6 => /lib64/libc.so.6 (0x00007fd280217000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd2807e4000)
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]