From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24733 invoked by alias); 29 Aug 2006 21:24:01 -0000 Received: (qmail 24723 invoked by uid 22791); 29 Aug 2006 21:24:00 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 29 Aug 2006 21:23:58 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GIB3r-0008FJ-0L; Tue, 29 Aug 2006 17:23:55 -0400 Date: Tue, 29 Aug 2006 21:24:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: dits365@gmail.com, gdb@sources.redhat.com Subject: Re: What exactly does "info sharedlibrary" command show? Message-ID: <20060829212354.GA31606@nevyn.them.org> Mail-Followup-To: Mark Kettenis , dits365@gmail.com, gdb@sources.redhat.com References: <20060829123954.GB12955@nevyn.them.org> <200608291914.k7TJEOPY016721@elgar.sibelius.xs4all.nl> <20060829192758.GA27571@nevyn.them.org> <200608292005.k7TK5M2q021703@elgar.sibelius.xs4all.nl> <20060829201206.GA28907@nevyn.them.org> <200608292107.k7TL7tab029171@elgar.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608292107.k7TL7tab029171@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00229.txt.bz2 On Tue, Aug 29, 2006 at 11:07:55PM +0200, Mark Kettenis wrote: > Yup, if you can guarantee that the first segment indeed includes all > the .text code, the latter is much better. How would you feel about "the segment containing .text", then? Actually, I'd probably try first to pick out "the segment with exec permission", and only if there was none or more than one look for a section named .text; I see that this would work for OpenBSD too. I'm trying as a general background task to decrease reliance on section names; for instance, the ARM compilers only call this ER_RO. -- Daniel Jacobowitz CodeSourcery