From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21138 invoked by alias); 17 Feb 2011 15:32:43 -0000 Received: (qmail 21130 invoked by uid 22791); 17 Feb 2011 15:32:43 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Feb 2011 15:32:36 +0000 Received: by iwc10 with SMTP id 10so2688606iwc.0 for ; Thu, 17 Feb 2011 07:32:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.5.5 with SMTP id 5mr2977264icu.175.1297956751124; Thu, 17 Feb 2011 07:32:31 -0800 (PST) Received: by 10.42.239.10 with HTTP; Thu, 17 Feb 2011 07:32:21 -0800 (PST) In-Reply-To: <20110217035721.GZ7651@bubble.grove.modra.org> References: <20110217035721.GZ7651@bubble.grove.modra.org> Date: Thu, 17 Feb 2011 15:32:00 -0000 Message-ID: Subject: Re: bfd_get_section_size() returns zero? From: Reid Linnemann To: Reid Linnemann , binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00214.txt.bz2 On Wed, Feb 16, 2011 at 9:57 PM, Alan Modra wrote: > Your most likely problem is that bfd headers don't match the bfd > library you are linking/running against. > > -- > Alan Modra > Australia Development Lab, IBM > I'm fairly certain that's not the case. If it were I would still expect bfd_get_section_size() to return a valid value since libbfd would internally agree on the structure of the asection record. Would you agree? Is it generally accepted that fetching a section with bfd_get_section_by_name() will always yield an asection with size information? Or can lbbfd perform a "lazy load" that needs supplementary actions to fetch all information for the section? And what would those supplementary actions be? Thanks for your assistance, Reid