bfd_get_section_size() returns zero?

Reid Linnemann linnemannr@gmail.com
Thu Feb 17 15:32:00 GMT 2011
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



More information about the Binutils mailing list