From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29726 invoked by alias); 17 Apr 2008 19:03:47 -0000 Received: (qmail 29718 invoked by uid 22791); 17 Apr 2008 19:03:47 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Apr 2008 19:03:27 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 1D901983D6; Thu, 17 Apr 2008 19:03:26 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id ED023982C4; Thu, 17 Apr 2008 19:03:25 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JmZOG-000657-QR; Thu, 17 Apr 2008 15:03:24 -0400 Date: Thu, 17 Apr 2008 21:09:00 -0000 From: Daniel Jacobowitz To: Craig Silverstein Cc: bauerman@br.ibm.com, gdb-patches@sourceware.org Subject: Re: Patch to handle compressed sections Message-ID: <20080417190324.GA21743@caradoc.them.org> Mail-Followup-To: Craig Silverstein , bauerman@br.ibm.com, gdb-patches@sourceware.org References: <20080326180132.GB10127@caradoc.them.org> <20080326183538.346243F25E8@localhost> <20080401140953.GD12753@caradoc.them.org> <20080402000638.1BD1B3F25EF@localhost> <20080402001637.GA18178@caradoc.them.org> <20080403054128.A45A43F25F0@localhost> <20080403064309.5454D3F25F0@localhost> <20080414234559.A3AA03F23CF@localhost> <20080417161526.GF17488@caradoc.them.org> <20080417185752.244673F23EF@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080417185752.244673F23EF@localhost> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00361.txt.bz2 On Thu, Apr 17, 2008 at 11:57:52AM -0700, Craig Silverstein wrote: > } You can use bfd_getb64. > > Yeah, we had some debate about that internally. The issue is that > bfd_getb64 crashes on machines without a 64-bit int type. That seemed > unnecessarily harsh here, especially since in practice section sizes > will never be longer than 32 bits. I see. Well, you could use bfd_getb32 twice... I just felt that the eight copies of that line were excessive. > } The other things needed for this feature are, IMO: > > Makes sense to me. Should that be part of this patch, or is it ok to > do it in a followup patch? A followup is fine, as long as I know you're going to look at it :-) > Makes sense. Further plans, if we ever get around to it, include > adding support to readelf, objdump, and addr2line, and adding support > to as to generate compressed sections in .o files (obviously, this > will require a linker that knows how to deal with that, so it's a > longer-term plan). I'll add objcopy to the list. Thanks! I may get around to these too - there's been an outstanding request for this in Debian for years. -- Daniel Jacobowitz CodeSourcery