This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Reading section headers
- To: binutils at sources dot redhat dot com
- Subject: Reading section headers
- From: Peter dot Targett at arccores dot com
- Date: Fri, 9 Nov 2001 15:13:41 +0000
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