This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bfd_get_section_size() returns zero?


On Wed, Feb 16, 2011 at 9:57 PM, Alan Modra <amodra@gmail.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]