This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Reading section headers
- To: Peter dot Targett at arccores dot com
- Subject: Re: Reading section headers
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Mon, 12 Nov 2001 10:31:18 +1030
- Cc: binutils at sources dot redhat dot com
- References: <OFFE6BA928.A25D9898-ON80256AFF.005299E5@risccores.com>
On Fri, Nov 09, 2001 at 03:13:41PM +0000, Peter.Targett@arccores.com wrote:
> 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?
Well, bfd_map_over_sections will only return sections for the given bfd.
Perhaps you need to find the right bfd?
Alan