This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/23102] Incorrect parsing of multiple consecutive $variable patterns in runpath entries (e.g. $ORIGIN$ORIGIN)
- From: "Arfrever.FTA at GMail dot Com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 21 Apr 2018 03:35:39 +0000
- Subject: [Bug dynamic-link/23102] Incorrect parsing of multiple consecutive $variable patterns in runpath entries (e.g. $ORIGIN$ORIGIN)
- Auto-submitted: auto-generated
- References: <bug-23102-131@http.sourceware.org/bugzilla/>
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.