This is the mail archive of the binutils@sources.redhat.com 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]

Reading section headers


In relocatable files I'm using the (preferred?) function bfd_map_over_sections
() to try and read sections like this:

    Section #2: .arcextmap.aux.512, type=COMDAT, addr=0x0, off=0x80
     size=10(0xa), link=4, info=0, align=1, entsize=1
     flags=<ALLOC>

However this section must be considered 'internal', so I never get a hook into it? Do I have to use a process similar to that found in readelf.c:
get_32bit_section_headers (), or is there a better approach?

I'm working on the opcodes library for a new port and need to be able to read such sections so that the data can be used in the disassembly output.

Peter


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