| /freebsd-11-stable/contrib/binutils/bfd/ |
| HD | elf-strtab.c | 151 BFD_ASSERT (tab->sec_size == 0); in _bfd_elf_strtab_add() 163 BFD_ASSERT (entry->len > 0); in _bfd_elf_strtab_add() 184 BFD_ASSERT (tab->sec_size == 0); in _bfd_elf_strtab_addref() 185 BFD_ASSERT (idx < tab->size); in _bfd_elf_strtab_addref() 194 BFD_ASSERT (tab->sec_size == 0); in _bfd_elf_strtab_delref() 195 BFD_ASSERT (idx < tab->size); in _bfd_elf_strtab_delref() 196 BFD_ASSERT (tab->array[idx]->refcount > 0); in _bfd_elf_strtab_delref() 222 BFD_ASSERT (idx < tab->size); in _bfd_elf_strtab_offset() 223 BFD_ASSERT (tab->sec_size); in _bfd_elf_strtab_offset() 225 BFD_ASSERT (entry->refcount > 0); in _bfd_elf_strtab_offset() [all …]
|
| HD | coff-arm.c | 996 BFD_ASSERT ((rel_off & 1) != 1); in insert_thumb_branch() 1026 BFD_ASSERT (tmp_name); in find_thumb_glue() 1055 BFD_ASSERT (tmp_name); in find_arm_glue() 1348 BFD_ASSERT (globals != NULL); in coff_arm_relocate_section() 1349 BFD_ASSERT (globals->bfd_of_glue_owner != NULL); in coff_arm_relocate_section() 1355 BFD_ASSERT (s != NULL); in coff_arm_relocate_section() 1356 BFD_ASSERT (s->contents != NULL); in coff_arm_relocate_section() 1357 BFD_ASSERT (s->output_section != NULL); in coff_arm_relocate_section() 1389 BFD_ASSERT (my_offset <= globals->arm_glue_size); in coff_arm_relocate_section() 1436 BFD_ASSERT (globals != NULL); in coff_arm_relocate_section() [all …]
|
| HD | elf32-i386.c | 1458 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in elf_i386_adjust_dynamic_symbol() 2645 BFD_ASSERT (! unresolved_reloc); in elf_i386_relocate_section() 2652 BFD_ASSERT (rel->r_offset >= 2); in elf_i386_relocate_section() 2654 BFD_ASSERT (type == 0x8d || type == 0x04); in elf_i386_relocate_section() 2655 BFD_ASSERT (rel->r_offset + 9 <= input_section->size); in elf_i386_relocate_section() 2656 BFD_ASSERT (bfd_get_8 (input_bfd, in elf_i386_relocate_section() 2659 BFD_ASSERT (rel + 1 < relend); in elf_i386_relocate_section() 2660 BFD_ASSERT (ELF32_R_TYPE (rel[1].r_info) == R_386_PLT32); in elf_i386_relocate_section() 2670 BFD_ASSERT (rel->r_offset >= 3); in elf_i386_relocate_section() 2671 BFD_ASSERT (bfd_get_8 (input_bfd, in elf_i386_relocate_section() [all …]
|
| HD | elf64-x86-64.c | 228 BFD_ASSERT (x86_64_elf_howto_table[i].type == r_type); in elf64_x86_64_rtype_to_howto() 276 BFD_ASSERT (r_type == cache_ptr->howto->type); in elf64_x86_64_info_to_howto() 1326 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in elf64_x86_64_adjust_dynamic_symbol() 2473 BFD_ASSERT (sindx != 0); in elf64_x86_64_relocate_section() 2523 BFD_ASSERT (! unresolved_reloc); in elf64_x86_64_relocate_section() 2536 BFD_ASSERT (rel->r_offset >= 4); in elf64_x86_64_relocate_section() 2538 BFD_ASSERT (bfd_get_8 (input_bfd, in elf64_x86_64_relocate_section() 2541 BFD_ASSERT (rel->r_offset + 12 <= input_section->size); in elf64_x86_64_relocate_section() 2543 BFD_ASSERT (bfd_get_8 (input_bfd, in elf64_x86_64_relocate_section() 2546 BFD_ASSERT (rel + 1 < relend); in elf64_x86_64_relocate_section() [all …]
|
| HD | sunos.c | 214 BFD_ASSERT (info->dynsym_count * EXTERNAL_NLIST_SIZE in sunos_read_dynamic_info() 221 BFD_ASSERT (info->dynrel_count * obj_reloc_entry_size (abfd) in sunos_read_dynamic_info() 1327 BFD_ASSERT (splt != NULL && srel != NULL); in sunos_scan_std_relocs() 1330 BFD_ASSERT (sgot != NULL); in sunos_scan_std_relocs() 1336 BFD_ASSERT ((h->flags & SUNOS_REF_REGULAR) != 0); in sunos_scan_std_relocs() 1337 BFD_ASSERT (h->plt_offset != 0 in sunos_scan_std_relocs() 1478 BFD_ASSERT (splt != NULL && sgot != NULL && srel != NULL); in sunos_scan_ext_relocs() 1546 BFD_ASSERT (splt != NULL && sgot != NULL && srel != NULL); in sunos_scan_ext_relocs() 1593 BFD_ASSERT (splt != NULL && sgot != NULL && srel != NULL); in sunos_scan_ext_relocs() 1601 BFD_ASSERT (r_type == RELOC_JMP_TBL in sunos_scan_ext_relocs() [all …]
|
| HD | elf32-score.c | 973 BFD_ASSERT (sgot != NULL); in score_elf_got_info() 974 BFD_ASSERT (elf_section_data (sgot) != NULL); in score_elf_got_info() 976 BFD_ASSERT (g != NULL); in score_elf_got_info() 1021 BFD_ASSERT (hsd.max_non_got_dynindx <= hsd.min_got_dynindx); in score_elf_sort_hash_table() 1022 BFD_ASSERT ((unsigned long)hsd.max_unref_got_dynindx in score_elf_sort_hash_table() 1168 BFD_ASSERT (s != NULL); in score_elf_allocate_dynamic_relocations() 1202 BFD_ASSERT (sreloc != NULL); in score_elf_create_dynamic_relocation() 1203 BFD_ASSERT (sreloc->contents != NULL); in score_elf_create_dynamic_relocation() 1204 BFD_ASSERT (sreloc->reloc_count * SCORE_ELF_REL_SIZE (output_bfd) < sreloc->size); in score_elf_create_dynamic_relocation() 1497 BFD_ASSERT (g->global_gotno > 0); in _bfd_score_elf_hide_symbol() [all …]
|
| HD | elfxx-mips.c | 2095 BFD_ASSERT (sgot != NULL); in mips_elf_got_info() 2096 BFD_ASSERT (mips_elf_section_data (sgot) != NULL); in mips_elf_got_info() 2098 BFD_ASSERT (g != NULL); in mips_elf_got_info() 2267 BFD_ASSERT (value != MINUS_ONE || (indx != 0 && need_relocs) in mips_elf_initialize_tls_slots() 2361 BFD_ASSERT (r_type == R_MIPS_TLS_GOTTPREL || r_type == R_MIPS_TLS_GD in mips_tls_got_index() 2368 BFD_ASSERT (*tls_type & GOT_TLS_IE); in mips_tls_got_index() 2377 BFD_ASSERT (*tls_type & GOT_TLS_GD); in mips_tls_got_index() 2383 BFD_ASSERT (*tls_type & GOT_TLS_LDM); in mips_tls_got_index() 2402 BFD_ASSERT (h->plt.offset != (bfd_vma) -1); in mips_elf_gotplt_index() 2472 BFD_ASSERT (h->dynindx >= 0); in mips_elf_global_got_index() [all …]
|
| HD | elf32-arm.c | 2518 BFD_ASSERT (tmp_name); in find_thumb_glue() 2551 BFD_ASSERT (tmp_name); in find_arm_glue() 2640 BFD_ASSERT (globals != NULL); in bfd_elf32_arm_allocate_interworking_sections() 2644 BFD_ASSERT (globals->bfd_of_glue_owner != NULL); in bfd_elf32_arm_allocate_interworking_sections() 2649 BFD_ASSERT (s != NULL); in bfd_elf32_arm_allocate_interworking_sections() 2653 BFD_ASSERT (s->size == globals->arm_glue_size); in bfd_elf32_arm_allocate_interworking_sections() 2659 BFD_ASSERT (globals->bfd_of_glue_owner != NULL); in bfd_elf32_arm_allocate_interworking_sections() 2664 BFD_ASSERT (s != NULL); in bfd_elf32_arm_allocate_interworking_sections() 2668 BFD_ASSERT (s->size == globals->thumb_glue_size); in bfd_elf32_arm_allocate_interworking_sections() 2674 BFD_ASSERT (globals->bfd_of_glue_owner != NULL); in bfd_elf32_arm_allocate_interworking_sections() [all …]
|
| HD | elf64-alpha.c | 1086 BFD_ASSERT (r_type < (unsigned int) R_ALPHA_max); in elf64_alpha_info_to_howto() 1925 BFD_ASSERT (CONST_STRNEQ (rel_sec_name, ".rela") in elf64_alpha_check_relocs() 2044 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in elf64_alpha_adjust_dynamic_symbol() 2396 BFD_ASSERT (this_got == i); in elf64_alpha_size_got_sections() 2678 BFD_ASSERT (srel != NULL); in elf64_alpha_size_rela_got_1() 2725 BFD_ASSERT (entries == 0); in elf64_alpha_size_rela_got_section() 2746 BFD_ASSERT(dynobj != NULL); in elf64_alpha_size_dynamic_sections() 2754 BFD_ASSERT (s != NULL); in elf64_alpha_size_dynamic_sections() 2970 BFD_ASSERT (elf_hash_table (info->link_info)->tls_sec != NULL); in elf64_alpha_relax_got_load() 2986 BFD_ASSERT (0); in elf64_alpha_relax_got_load() [all …]
|
| HD | stabs.c | 358 BFD_ASSERT (num_chars == (bfd_vma) (symb_rover - symb)); in _bfd_link_section_stabs() 487 BFD_ASSERT (offset != 0); in _bfd_link_section_stabs() 641 BFD_ASSERT (offset != 0); in _bfd_discard_section_stabs() 679 BFD_ASSERT (e->offset < stabsec->rawsize); in _bfd_write_section_stabs() 705 BFD_ASSERT (sym == contents); in _bfd_write_section_stabs() 717 BFD_ASSERT ((bfd_size_type) (tosym - contents) == stabsec->size); in _bfd_write_section_stabs() 733 BFD_ASSERT ((sinfo->stabstr->output_offset in _bfd_write_stab_strings()
|
| HD | coff-alpha.c | 465 BFD_ASSERT (size == sec->size 545 BFD_ASSERT (bfd_header_little_endian (abfd)); 615 BFD_ASSERT (intern->r_extern 621 BFD_ASSERT (bfd_header_little_endian (abfd)); 688 BFD_ASSERT (intern->r_offset <= 256); 925 BFD_ASSERT (((insn >> 26) & 0x3f) == 0x29 960 BFD_ASSERT (((insn1 >> 26) & 0x3f) == 0x09); /* ldah */ 961 BFD_ASSERT (((insn2 >> 26) & 0x3f) == 0x08); /* lda */ 1279 BFD_ASSERT (info->relocatable); 1520 BFD_ASSERT (bfd_header_little_endian (output_bfd)); [all …]
|
| HD | elf64-mips.c | 1791 BFD_ASSERT(src[0].r_offset == src[1].r_offset); in mips_elf64_be_swap_reloc_out() 1812 BFD_ASSERT(src[0].r_offset == src[1].r_offset); in mips_elf64_be_swap_reloca_out() 1813 BFD_ASSERT(src[0].r_offset == src[2].r_offset); in mips_elf64_be_swap_reloca_out() 1818 BFD_ASSERT(src[1].r_addend == 0); in mips_elf64_be_swap_reloca_out() 1819 BFD_ASSERT(src[2].r_addend == 0); in mips_elf64_be_swap_reloca_out() 2297 BFD_ASSERT (r_type < (unsigned int) R_MIPS_max); in mips_elf64_rtype_to_howto() 2313 BFD_ASSERT (0); in mips_elf64_info_to_howto_rel() 2321 BFD_ASSERT (0); in mips_elf64_info_to_howto_rela() 2436 BFD_ASSERT (entsize == sizeof (Elf64_Mips_External_Rel) in mips_elf64_slurp_one_reloc_table() 2528 BFD_ASSERT (0); in mips_elf64_slurp_one_reloc_table() [all …]
|
| HD | bout.c | 561 BFD_ASSERT (IS_BALNAME (balsym->other)); in calljx_callback() 605 BFD_ASSERT (IS_BALNAME (balsym->other)); in callj_callback() 622 BFD_ASSERT (! shrinking); in callj_callback() 623 BFD_ASSERT (symbol->symbol.section == input_section); in callj_callback() 826 BFD_ASSERT (FALSE); in b_out_slurp_reloc_table() 1023 BFD_ASSERT (s != (asymbol **) NULL); in perform_slip() 1043 BFD_ASSERT (h->root.type == bfd_link_hash_defined); in perform_slip() 1045 BFD_ASSERT (h->root.u.def.value == p->value); in perform_slip() 1235 BFD_ASSERT (bfd_get_section_contents (input_bfd, in b_out_bfd_get_relocated_section_contents() 1265 BFD_ASSERT (reloc->address >= src_address); in b_out_bfd_get_relocated_section_contents() [all …]
|
| HD | reloc16.c | 110 BFD_ASSERT (s != (asymbol **) NULL); 128 BFD_ASSERT (h->root.type == bfd_link_hash_defined 131 BFD_ASSERT (h->root.u.def.value == p->value);
|
| HD | elf32-ppc.c | 1638 BFD_ASSERT (ELF32_R_TYPE (dst->r_info) < (unsigned int) R_PPC_max); in ppc_elf_info_to_howto() 1797 BFD_ASSERT (abfd->arch_info->bits_per_word == 32); in ppc_elf_object_p() 1808 BFD_ASSERT (!elf_flags_init (abfd) in ppc_elf_set_private_flags() 2927 BFD_ASSERT (lsect != NULL); in elf_create_pointer_linker_section() 2974 BFD_ASSERT (ptr_linker_section_ptr != NULL); in elf_create_pointer_linker_section() 3152 BFD_ASSERT (h == htab->elf.hgot); in ppc_elf_check_relocs() 3604 BFD_ASSERT (CONST_STRNEQ (name, ".rela") in ppc_elf_check_relocs() 3877 BFD_ASSERT (htab->plt_type != PLT_VXWORKS); in ppc_elf_select_plt_layout() 4350 BFD_ASSERT (htab->elf.dynobj != NULL in ppc_elf_adjust_dynamic_symbol() 4395 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in ppc_elf_adjust_dynamic_symbol() [all …]
|
| HD | xcofflink.c | 1068 BFD_ASSERT (symesz == bfd_coff_auxesz (abfd)); in xcoff_link_add_symbols() 1632 BFD_ASSERT (section != NULL); in xcoff_link_add_symbols() 1771 BFD_ASSERT (last_real->next == first_csect); in xcoff_link_add_symbols() 1814 BFD_ASSERT (last_real == NULL || last_real->next == first_csect); in xcoff_link_add_symbols() 1892 BFD_ASSERT ((hds->flags & XCOFF_CALLED) == 0 in xcoff_link_add_symbols() 2480 BFD_ASSERT ((hds->flags & XCOFF_CALLED) == 0 in bfd_xcoff_import_symbol() 2515 BFD_ASSERT (h->ldsym == NULL); in bfd_xcoff_import_symbol() 2516 BFD_ASSERT ((h->flags & XCOFF_BUILT_LDSYM) == 0); in bfd_xcoff_import_symbol() 2793 BFD_ASSERT ((hds->root.type == bfd_link_hash_undefined in xcoff_build_ldsyms() 2883 BFD_ASSERT (bfd_is_com_section (h->root.u.c.p->section)); in xcoff_build_ldsyms() [all …]
|
| HD | opncls.c | 1130 BFD_ASSERT (abfd); in get_debug_link_info() 1131 BFD_ASSERT (crc32_out); in get_debug_link_info() 1177 BFD_ASSERT (name); in separate_debug_file_exists() 1217 BFD_ASSERT (abfd); in find_separate_debug_file() 1241 BFD_ASSERT (strlen (dir) != 0); in find_separate_debug_file() 1249 BFD_ASSERT (dir[i] == '/' || dir[0] == '\0'); in find_separate_debug_file()
|
| HD | elfxx-ia64.c | 1045 BFD_ASSERT (h != NULL); 1064 BFD_ASSERT (irel->r_addend == 0); 2342 BFD_ASSERT (curr == prev); in sort_dyn_sym_info() 2444 BFD_ASSERT (!create); 2576 BFD_ASSERT (got); 2621 BFD_ASSERT (0); 2640 BFD_ASSERT (0); 2678 BFD_ASSERT (0); 2705 BFD_ASSERT ((CONST_STRNEQ (srel_name, ".rela") 3316 BFD_ASSERT (h->root.type == bfd_link_hash_defined [all …]
|
| HD | elf-eh-frame.c | 1108 BFD_ASSERT (lo < hi); in _bfd_elf_eh_frame_section_offset() 1181 BFD_ASSERT (ptr_size != 0); in _bfd_elf_write_section_eh_frame() 1251 BFD_ASSERT (ent == sec_info->entry + sec_info->count - 1); in _bfd_elf_write_section_eh_frame() 1313 BFD_ASSERT (action & 1); in _bfd_elf_write_section_eh_frame() 1325 BFD_ASSERT (*buf == ent->lsda_encoding); in _bfd_elf_write_section_eh_frame() 1334 BFD_ASSERT (per_width != 0); in _bfd_elf_write_section_eh_frame() 1335 BFD_ASSERT (((per_encoding & 0x70) == DW_EH_PE_pcrel) in _bfd_elf_write_section_eh_frame() 1357 BFD_ASSERT (*buf == ent->fde_encoding); in _bfd_elf_write_section_eh_frame() 1392 BFD_ASSERT (hdr_info == NULL); in _bfd_elf_write_section_eh_frame() 1398 BFD_ASSERT (got != NULL); in _bfd_elf_write_section_eh_frame()
|
| HD | elfxx-sparc.c | 889 BFD_ASSERT (htab->sgot != NULL); in create_got_section() 1439 BFD_ASSERT (CONST_STRNEQ (name, ".rela") in _bfd_sparc_elf_check_relocs() 1708 BFD_ASSERT (htab->elf.dynobj != NULL in _bfd_sparc_elf_adjust_dynamic_symbol() 1755 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in _bfd_sparc_elf_adjust_dynamic_symbol() 2128 BFD_ASSERT (dynobj != NULL); in _bfd_sparc_elf_size_dynamic_sections() 2136 BFD_ASSERT (s != NULL); in _bfd_sparc_elf_size_dynamic_sections() 2584 BFD_ASSERT (off != (bfd_vma) -1); in _bfd_sparc_elf_relocate_section() 2620 BFD_ASSERT (local_got_offsets != NULL in _bfd_sparc_elf_relocate_section() 2641 BFD_ASSERT (s != NULL); in _bfd_sparc_elf_relocate_section() 2691 BFD_ASSERT (h != NULL); in _bfd_sparc_elf_relocate_section() [all …]
|
| HD | cpu-spu.c | 27 BFD_ASSERT (a->arch == bfd_arch_spu); in spu_compatible()
|
| HD | linker.c | 623 BFD_ASSERT (h->u.undef.next == NULL); in bfd_link_add_undef() 1620 BFD_ASSERT (h->type == bfd_link_hash_common); in _bfd_generic_link_add_one_symbol() 1751 BFD_ASSERT (h->type == bfd_link_hash_common); in _bfd_generic_link_add_one_symbol() 1855 BFD_ASSERT (h->type == bfd_link_hash_common); in _bfd_generic_link_add_one_symbol() 2076 BFD_ASSERT ((unsigned long) reloc_count in _bfd_generic_final_link() 2284 BFD_ASSERT (bfd_is_und_section (sym->section)); in _bfd_generic_link_output_symbols() 2405 BFD_ASSERT ((sym->flags & BSF_CONSTRUCTOR) != 0); in set_symbol_from_hash() 2438 BFD_ASSERT (bfd_is_und_section (sym->section)); in set_symbol_from_hash() 2666 BFD_ASSERT ((sec->flags & SEC_HAS_CONTENTS) != 0); in default_data_link_order() 2722 BFD_ASSERT ((output_section->flags & SEC_HAS_CONTENTS) != 0); in default_indirect_link_order() [all …]
|
| HD | peicode.h | 473 BFD_ASSERT (vars->relcount <= NUM_ILF_RELOCS); in pe_ILF_make_a_symbol_reloc() 510 BFD_ASSERT ((bfd_byte *) vars->int_reltab < (bfd_byte *) vars->string_table); in pe_ILF_save_relocs() 544 BFD_ASSERT (vars->sym_index < NUM_ILF_SYMS); in pe_ILF_make_a_symbol() 588 BFD_ASSERT (vars->string_ptr < vars->end_string_ptr); in pe_ILF_make_a_symbol() 613 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section() 635 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section()
|
| HD | cpu-rs6000.c | 38 BFD_ASSERT (a->arch == bfd_arch_rs6000);
|
| HD | srec.c | 685 BFD_ASSERT (c == 'S'); in srec_read_section() 690 BFD_ASSERT (ISHEX (hdr[1]) && ISHEX (hdr[2])); in srec_read_section() 712 BFD_ASSERT (sofar == section->size); in srec_read_section() 737 BFD_ASSERT (sofar == section->size); in srec_read_section() 760 BFD_ASSERT (sofar == section->size); in srec_read_section()
|