This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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]

Re: gdbserver, sysroot, prelink


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


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