public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/12250] New: RFE: Use DT_RPATH for solib-search-path
@ 2010-11-23 5:21 jan.kratochvil at redhat dot com
0 siblings, 0 replies; only message in thread
From: jan.kratochvil at redhat dot com @ 2010-11-23 5:21 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-21 18:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 5:21 [Bug symtab/12250] New: RFE: Use DT_RPATH for solib-search-path jan.kratochvil at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).