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]

bfd_get_section_size() returns zero?


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


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