Lines Matching full:bfd
1 /* Object file "section" support for the BFD library.
5 This file is part of BFD, the Binary File Descriptor library.
26 The raw data contained within a BFD is maintained through the
27 section abstraction. A single BFD may have any number of
31 Sections are supported in BFD in <<section.c>>.
45 When a BFD is opened for reading, the section structures are
46 created and attached to the BFD.
55 Sometimes a BFD will contain more than the ``natural'' number of
59 BFD. For example, the linker creates an extra section
60 <<COMMON>> for each input file's BFD to hold information about
79 To write a new object style BFD, the various sections to be
80 written have to be created. They are attached to the BFD in
136 #include "bfd.h"
160 . {* Which section in the bfd; 0..n-1 as sections are created in a bfd. *}
163 . {* The next section in the list belonging to the BFD, or NULL. *}
166 . {* The previous section in the list belonging to the BFD, or NULL. *}
407 . user_set_vma flag is maintained by bfd; if it's not set, the
515 . {* The BFD which owns the section. *}
516 . bfd *owner;
548 .bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val)
555 .bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val)
563 .bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val)
569 .{* These sections are global, and are managed by BFD. The application
598 .{* Macros to handle insertion and deletion of a bfd's sections. These
621 . bfd *_abfd = ABFD; \
640 . bfd *_abfd = ABFD; \
740 /* These symbols are global, not specific to any BFD. Therefore, anything
797 _bfd_generic_new_section_hook (bfd *abfd, asection *newsect)
815 bfd_section_init (bfd *abfd, asection *newsect)
839 These are the functions exported by the section handling part of BFD.
847 void bfd_section_list_clear (bfd *);
855 bfd_section_list_clear (bfd *abfd)
870 asection *bfd_get_section_by_name (bfd *abfd, const char *name);
878 bfd_get_section_by_name (bfd *abfd, const char *name)
899 BFD with the same name. Return NULL if no such section exists.
929 asection *bfd_get_linker_section (bfd *abfd, const char *name);
937 bfd_get_linker_section (bfd *abfd, const char *name)
952 (bfd *abfd,
954 bfd_boolean (*func) (bfd *abfd, asection *sect, void *obj),
959 attached to the BFD @var{abfd} whose name matches @var{name},
971 bfd_get_section_by_name_if (bfd *abfd, const char *name,
972 bfd_boolean (*operation) (bfd *,
1003 (bfd *abfd, const char *templat, int *count);
1014 bfd_get_unique_section_name (bfd *abfd, const char *templat, int *count)
1048 asection *bfd_make_section_old_way (bfd *abfd, const char *name);
1053 BFD @var{abfd}. An attempt to create a section with a name which
1062 If output has already started for this BFD.
1069 bfd_make_section_old_way (bfd *abfd, const char *name)
1120 (bfd *abfd, const char *name, flagword flags);
1134 bfd_make_section_anyway_with_flags (bfd *abfd, const char *name,
1156 sh->root.next quicker than looking at all the bfd sections. */
1178 asection *bfd_make_section_anyway (bfd *abfd, const char *name);
1191 bfd_make_section_anyway (bfd *abfd, const char *name)
1202 (bfd *, const char *name, flagword flags);
1213 bfd_make_section_with_flags (bfd *abfd, const char *name,
1252 asection *bfd_make_section (bfd *, const char *name);
1262 bfd_make_section (bfd *abfd, const char *name)
1273 (bfd *abfd, asection *sec, flagword flags);
1276 Set the attributes of the section @var{sec} in the BFD
1288 bfd_set_section_flags (bfd *abfd ATTRIBUTE_UNUSED,
1302 (bfd *abfd, asection *sec, const char *newname);
1309 bfd_rename_section (bfd *abfd, sec_ptr sec, const char *newname)
1325 (bfd *abfd,
1326 void (*func) (bfd *abfd, asection *sect, void *obj),
1331 attached to the BFD @var{abfd}, passing @var{obj} as an
1346 bfd_map_over_sections (bfd *abfd,
1347 void (*operation) (bfd *, asection *, void *),
1366 (bfd *abfd,
1367 bfd_boolean (*operation) (bfd *abfd, asection *sect, void *obj),
1372 attached to the BFD @var{abfd}, passing @var{obj} as an
1382 bfd_sections_find_if (bfd *abfd,
1383 bfd_boolean (*operation) (bfd *, asection *, void *),
1401 (bfd *abfd, asection *sec, bfd_size_type val);
1409 Writing has started to the BFD, so setting the size is invalid.
1414 bfd_set_section_size (bfd *abfd, sec_ptr ptr, bfd_size_type val)
1435 (bfd *abfd, asection *section, const void *data,
1439 Sets the contents of the section @var{section} in BFD
1457 bfd_set_section_contents (bfd *abfd,
1508 (bfd *abfd, asection *section, void *location, file_ptr offset,
1512 Read data from @var{section} in BFD @var{abfd}
1525 bfd_get_section_contents (bfd *abfd,
1588 (bfd *abfd, asection *section, bfd_byte **buf);
1591 Read all data from @var{section} in BFD @var{abfd}
1596 bfd_malloc_and_get_section (bfd *abfd, sec_ptr sec, bfd_byte **buf)
1607 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
1610 Copy private section information from @var{isec} in the BFD
1611 @var{ibfd} to the section @var{osec} in the BFD @var{obfd}.
1628 bfd_boolean bfd_generic_is_group_section (bfd *, const asection *sec);
1635 bfd_generic_is_group_section (bfd *abfd ATTRIBUTE_UNUSED,
1646 bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);
1653 bfd_generic_discard_group (bfd *abfd ATTRIBUTE_UNUSED,