This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdbserver, sysroot, prelink
- From: Daniel Jacobowitz <drow at false dot org>
- To: Felix Lee <felix dot 1 at canids dot net>
- Cc: gdb list <gdb at sources dot redhat dot com>
- Date: Mon, 4 Oct 2004 13:51:48 -0400
- Subject: Re: gdbserver, sysroot, prelink
- References: <20041004173736.1EA97502AB6@stray.canids>
On Mon, Oct 04, 2004 at 10:37:36AM -0700, Felix Lee wrote:
> if you use gdbserver to debug a program on a remote Fedora Core 2
> machine, then you need to set solib-absolute-prefix to a copy of
> the shared libraries from that specific machine. you can't use
> generic FC2 shared libraries, because 'prelink' in nightly cron
> does arbitrary relocation of shared libraries on each machine.
>
> this probably affects any system that uses prelink; I haven't
> tried any other than FC2.
>
> I don't think there's anything that needs fixing. just pointing
> out that configuring --with-sysroot is basically useless for any
> system that uses prelink.
How does this make --with-sysroot useless? That's exactly what sysroot
is supposed to do - point it where you keep the exact libraries of the
machine. I usually point it to an NFS server.
Yes, prelink randomization does invalidate sysroots.
--
Daniel Jacobowitz