www.delorie.com/gnu/docs/binutils/bfd_54.html   search  
Buy GNU books!

Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ] bfd_map_over_sections

void bfd_map_over_sections(bfd *abfd,
    void (*func) (bfd *abfd,
    asection *sect,
    PTR obj),
    PTR obj);
Call the provided function func for each section attached to the BFD abfd, passing obj as an argument. The function will be called as if by

       func(abfd, the_section, obj);

This is the prefered method for iterating over sections; an alternative would be to use a loop:

          section *p;
          for (p = abfd->sections; p != NULL; p = p->next)
             func(abfd, p, ...)

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003