Lines Matching refs:newsect

746 _bfd_generic_new_section_hook (bfd *abfd, asection *newsect)  in _bfd_generic_new_section_hook()  argument
748 newsect->symbol = bfd_make_empty_symbol (abfd); in _bfd_generic_new_section_hook()
749 if (newsect->symbol == NULL) in _bfd_generic_new_section_hook()
752 newsect->symbol->name = newsect->name; in _bfd_generic_new_section_hook()
753 newsect->symbol->value = 0; in _bfd_generic_new_section_hook()
754 newsect->symbol->section = newsect; in _bfd_generic_new_section_hook()
755 newsect->symbol->flags = BSF_SECTION_SYM; in _bfd_generic_new_section_hook()
757 newsect->symbol_ptr_ptr = &newsect->symbol; in _bfd_generic_new_section_hook()
764 bfd_section_init (bfd *abfd, asection *newsect) in bfd_section_init() argument
768 newsect->id = section_id; in bfd_section_init()
769 newsect->index = abfd->section_count; in bfd_section_init()
770 newsect->owner = abfd; in bfd_section_init()
772 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) in bfd_section_init()
777 bfd_section_list_append (abfd, newsect); in bfd_section_init()
778 return newsect; in bfd_section_init()
968 asection *newsect; in bfd_make_section_old_way() local
977 newsect = bfd_abs_section_ptr; in bfd_make_section_old_way()
979 newsect = bfd_com_section_ptr; in bfd_make_section_old_way()
981 newsect = bfd_und_section_ptr; in bfd_make_section_old_way()
983 newsect = bfd_ind_section_ptr; in bfd_make_section_old_way()
992 newsect = &sh->section; in bfd_make_section_old_way()
993 if (newsect->name != NULL) in bfd_make_section_old_way()
996 return newsect; in bfd_make_section_old_way()
999 newsect->name = name; in bfd_make_section_old_way()
1000 return bfd_section_init (abfd, newsect); in bfd_make_section_old_way()
1006 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) in bfd_make_section_old_way()
1008 return newsect; in bfd_make_section_old_way()
1035 asection *newsect; in bfd_make_section_anyway_with_flags() local
1047 newsect = &sh->section; in bfd_make_section_anyway_with_flags()
1048 if (newsect->name != NULL) in bfd_make_section_anyway_with_flags()
1062 newsect = &new_sh->section; in bfd_make_section_anyway_with_flags()
1065 newsect->flags = flags; in bfd_make_section_anyway_with_flags()
1066 newsect->name = name; in bfd_make_section_anyway_with_flags()
1067 return bfd_section_init (abfd, newsect); in bfd_make_section_anyway_with_flags()
1114 asection *newsect; in bfd_make_section_with_flags() local
1132 newsect = &sh->section; in bfd_make_section_with_flags()
1133 if (newsect->name != NULL) in bfd_make_section_with_flags()
1139 newsect->name = name; in bfd_make_section_with_flags()
1140 newsect->flags = flags; in bfd_make_section_with_flags()
1141 return bfd_section_init (abfd, newsect); in bfd_make_section_with_flags()