Home | History | Annotate | Download | only in bfd

Lines Matching defs:newsect

820 _bfd_generic_new_section_hook (bfd *abfd, asection *newsect)
822 newsect->symbol = bfd_make_empty_symbol (abfd);
823 if (newsect->symbol == NULL)
826 newsect->symbol->name = newsect->name;
827 newsect->symbol->value = 0;
828 newsect->symbol->section = newsect;
829 newsect->symbol->flags = BSF_SECTION_SYM;
831 newsect->symbol_ptr_ptr = &newsect->symbol;
837 /* Initializes a new section. NEWSECT->NAME is already set. */
840 bfd_section_init (bfd *abfd, asection *newsect)
842 newsect->id = _bfd_section_id;
843 newsect->index = abfd->section_count;
844 newsect->owner = abfd;
846 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect)))
851 bfd_section_list_append (abfd, newsect);
852 return newsect;
1107 asection *newsect;
1116 newsect = bfd_abs_section_ptr;
1118 newsect = bfd_com_section_ptr;
1120 newsect = bfd_und_section_ptr;
1122 newsect = bfd_ind_section_ptr;
1131 newsect = &sh->section;
1132 if (newsect->name != NULL)
1135 return newsect;
1138 newsect->name = name;
1139 return bfd_section_init (abfd, newsect);
1145 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect)))
1147 return newsect;
1174 asection *newsect;
1186 newsect = &sh->section;
1187 if (newsect->name != NULL)
1201 newsect = &new_sh->section;
1204 newsect->flags = flags;
1205 newsect->name = name;
1206 return bfd_section_init (abfd, newsect);
1253 asection *newsect;
1271 newsect = &sh->section;
1272 if (newsect->name != NULL)
1278 newsect->name = name;
1279 newsect->flags = flags;
1280 return bfd_section_init (abfd, newsect);