public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Reid Linnemann <linnemannr@gmail.com>
To: binutils@sourceware.org
Subject: bfd_get_section_size() returns zero?
Date: Thu, 17 Feb 2011 00:11:00 -0000	[thread overview]
Message-ID: <AANLkTi=bjmv+-GUUE8rD2iFq3akrAs0by5L-U0nWXM_3@mail.gmail.com> (raw)

I'm fairly new to BFD, so please bear with me. I'm making a quick and
dirty dwarf parser and using BFD to fetch the relevant .debug*
sections. After I fetch a section with bfd_get_section_by_name(), if I
attempt to get the section size with bfd_get_section_size(), thus far
on an amd64 system I have been getting the appropriate size, but on an
i386 system the same code is returning 0! All size members in the
asection struct are zero, and line_filepos appears to be an invalid
address. I don't understand. I can get the section contents with
bfd_malloc_and_get_section(), but no size information. This happens
with all sections AFAICT. Both systems are based on RHEL 5 and are
using the same binutils (2.17.50.0.6-12.el5). Can anyone assist?

Thanks,
Reid

             reply	other threads:[~2011-02-17  0:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  0:11 Reid Linnemann [this message]
2011-02-17  3:57 ` Alan Modra
2011-02-17 15:32   ` Reid Linnemann
2011-02-17 21:55     ` Reid Linnemann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=bjmv+-GUUE8rD2iFq3akrAs0by5L-U0nWXM_3@mail.gmail.com' \
    --to=linnemannr@gmail.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).