This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/12250] New: RFE: Use DT_RPATH for solib-search-path
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 21 Nov 2010 18:23:51 +0000
- Subject: [Bug symtab/12250] New: RFE: Use DT_RPATH for solib-search-path
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12250
Summary: RFE: Use DT_RPATH for solib-search-path
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: symtab
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
DT_RPATH may contain also $ORIGIN which may match during debugging to a
different path than those specific in the inferior shared library list.
rm -rf dir xbin xlib core.*;mkdir xbin xlib;:|gcc -x c - -shared -fPIC -o
xlib/libx.so -Wl,-soname,libx.so;echo 'main(){*(int*)0=0;}'|gcc -o xbin/bin -x
c - -Lxlib -lx -Wl,-rpath,'$ORIGIN/../xlib';(ulimit -c
unlimited;./xbin/bin);mkdir dir;mv xbin xlib dir;gdb -nx dir/xbin/bin ./core.*
-ex 'info shared' -ex 'set solib-search-path dir/xlib' -ex 'info shared'
>From To Syms Read Shared Object Library
No
/home/jkratoch/t/libs/xbin/../xlib/libx.so
0x00000035f081e9a0 0x00000035f092b820 Yes /lib64/libc-2.12.1.so
0x00000035f0400af0 0x00000035f0418864 Yes /lib64/ld-2.12.1.so
>From To Syms Read Shared Object Library
0x00007f31ffdbc410 0x00007f31ffdbc518 Yes (*)
/home/jkratoch/t/libs/dir/xlib/libx.so
0x00000035f081e9a0 0x00000035f092b820 Yes /lib64/libc-2.12.1.so
0x00000035f0400af0 0x00000035f0418864 Yes /lib64/ld-2.12.1.so
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.