From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24005 invoked by alias); 4 Oct 2004 17:51:50 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23989 invoked from network); 4 Oct 2004 17:51:49 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 4 Oct 2004 17:51:49 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CEX00-0004FM-3q; Mon, 04 Oct 2004 13:51:48 -0400 Date: Mon, 04 Oct 2004 18:12:00 -0000 From: Daniel Jacobowitz To: Felix Lee Cc: gdb list Subject: Re: gdbserver, sysroot, prelink Message-ID: <20041004175148.GA16251@nevyn.them.org> Mail-Followup-To: Felix Lee , gdb list References: <20041004173736.1EA97502AB6@stray.canids> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041004173736.1EA97502AB6@stray.canids> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00051.txt.bz2 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