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]

Re: Reading section headers


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


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