Lines Matching refs:newsect

803 _bfd_generic_new_section_hook (bfd *abfd, asection *newsect)  in _bfd_generic_new_section_hook()  argument
805 newsect->symbol = bfd_make_empty_symbol (abfd); in _bfd_generic_new_section_hook()
806 if (newsect->symbol == NULL) in _bfd_generic_new_section_hook()
809 newsect->symbol->name = newsect->name; in _bfd_generic_new_section_hook()
810 newsect->symbol->value = 0; in _bfd_generic_new_section_hook()
811 newsect->symbol->section = newsect; in _bfd_generic_new_section_hook()
812 newsect->symbol->flags = BSF_SECTION_SYM; in _bfd_generic_new_section_hook()
814 newsect->symbol_ptr_ptr = &newsect->symbol; in _bfd_generic_new_section_hook()
823 bfd_section_init (bfd *abfd, asection *newsect) in bfd_section_init() argument
825 newsect->id = _bfd_section_id; in bfd_section_init()
826 newsect->index = abfd->section_count; in bfd_section_init()
827 newsect->owner = abfd; in bfd_section_init()
829 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) in bfd_section_init()
834 bfd_section_list_append (abfd, newsect); in bfd_section_init()
835 return newsect; in bfd_section_init()
1090 asection *newsect; in bfd_make_section_old_way() local
1099 newsect = bfd_abs_section_ptr; in bfd_make_section_old_way()
1101 newsect = bfd_com_section_ptr; in bfd_make_section_old_way()
1103 newsect = bfd_und_section_ptr; in bfd_make_section_old_way()
1105 newsect = bfd_ind_section_ptr; in bfd_make_section_old_way()
1114 newsect = &sh->section; in bfd_make_section_old_way()
1115 if (newsect->name != NULL) in bfd_make_section_old_way()
1118 return newsect; in bfd_make_section_old_way()
1121 newsect->name = name; in bfd_make_section_old_way()
1122 return bfd_section_init (abfd, newsect); in bfd_make_section_old_way()
1128 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) in bfd_make_section_old_way()
1130 return newsect; in bfd_make_section_old_way()
1157 asection *newsect; in bfd_make_section_anyway_with_flags() local
1169 newsect = &sh->section; in bfd_make_section_anyway_with_flags()
1170 if (newsect->name != NULL) in bfd_make_section_anyway_with_flags()
1184 newsect = &new_sh->section; in bfd_make_section_anyway_with_flags()
1187 newsect->flags = flags; in bfd_make_section_anyway_with_flags()
1188 newsect->name = name; in bfd_make_section_anyway_with_flags()
1189 return bfd_section_init (abfd, newsect); in bfd_make_section_anyway_with_flags()
1236 asection *newsect; in bfd_make_section_with_flags() local
1254 newsect = &sh->section; in bfd_make_section_with_flags()
1255 if (newsect->name != NULL) in bfd_make_section_with_flags()
1261 newsect->name = name; in bfd_make_section_with_flags()
1262 newsect->flags = flags; in bfd_make_section_with_flags()
1263 return bfd_section_init (abfd, newsect); in bfd_make_section_with_flags()