/toolchain/binutils/binutils-2.25/ld/testsuite/ld-mips-elf/ |
D | undefined.s | 7 # BFD_ASSERT (h->dynindx >= global_got_dynindx); 10 # at this point h->dynindx for the undefined symbol would be set to -1. 12 # referred and set its h->dynindx in _bfd_mips_elf_check_relocs(), but
|
/toolchain/binutils/binutils-2.25/bfd/ |
D | sunos.c | 579 long dynindx; member 662 ret->dynindx = -1; in sunos_link_hash_newfunc() 1166 if (h->dynindx == -1 in sunos_add_one_symbol() 1170 h->dynindx = -2; in sunos_add_one_symbol() 1221 if (h->dynindx == -1) in bfd_sunos_record_link_assignment() 1224 h->dynindx = -2; in bfd_sunos_record_link_assignment() 1796 BFD_ASSERT (h->dynindx == -2); in sunos_scan_dynamic_symbol() 1800 h->dynindx = sunos_hash_table (info)->dynsymcount; in sunos_scan_dynamic_symbol() 1834 PUT_WORD (dynobj, h->dynindx, s->contents + hash * HASH_ENTRY_SIZE); in sunos_scan_dynamic_symbol() 1845 PUT_WORD (dynobj, h->dynindx, s->contents + s->size); in sunos_scan_dynamic_symbol() [all …]
|
D | elfnn-ia64.c | 1314 if (ind->root.dynindx != -1) in elfNN_ia64_hash_copy_indirect() 1316 if (dir->root.dynindx != -1) in elfNN_ia64_hash_copy_indirect() 1319 dir->root.dynindx = ind->root.dynindx; in elfNN_ia64_hash_copy_indirect() 1321 ind->root.dynindx = -1; in elfNN_ia64_hash_copy_indirect() 2721 if (h && h->dynindx == -1) in allocate_fptr() 2734 else if (h == NULL || h->dynindx == -1) in allocate_fptr() 2856 && dyn_i->h->dynindx != -1)) in allocate_dynrel_entries() 3230 long dynindx, bfd_vma addend) in elfNN_ia64_install_dyn_reloc() argument 3235 BFD_ASSERT (dynindx != -1); in elfNN_ia64_install_dyn_reloc() 3236 outrel.r_info = ELFNN_R_INFO (dynindx, type); in elfNN_ia64_install_dyn_reloc() [all …]
|
D | elf32-i370.c | 554 h->dynindx, *cp); in i370_elf_adjust_dynindx() 557 if (h->dynindx != -1) in i370_elf_adjust_dynindx() 558 h->dynindx += *cp; in i370_elf_adjust_dynindx() 758 elf_section_data (s)->dynindx = -1; in i370_elf_size_dynamic_sections() 765 elf_section_data (s)->dynindx = c + 1; in i370_elf_size_dynamic_sections() 968 dindx = elf_section_data (s)->dynindx; in i370_elf_finish_dynamic_sections() 1108 && ((! info->symbolic && h->dynindx != -1) in i370_elf_relocate_section() 1219 && ((! info->symbolic && h->dynindx != -1) in i370_elf_relocate_section() 1222 BFD_ASSERT (h->dynindx != -1); in i370_elf_relocate_section() 1223 outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); in i370_elf_relocate_section() [all …]
|
D | elf32-sh.c | 2963 if (h->dynindx == -1 in allocate_dynrelocs() 3050 if (h->dynindx == -1 in allocate_dynrelocs() 3077 else if ((got_type == GOT_TLS_GD && h->dynindx == -1) in allocate_dynrelocs() 3110 if (h->dynindx == -1 in allocate_dynrelocs() 3217 else if (h->dynindx == -1 in allocate_dynrelocs() 3240 if (h->dynindx == -1 in allocate_dynrelocs() 3249 if (h->dynindx != -1) in allocate_dynrelocs() 3634 int reloc_type, long dynindx, bfd_vma addend) in sh_elf_add_dyn_reloc() argument 3640 outrel.r_info = ELF32_R_INFO (dynindx, reloc_type); in sh_elf_add_dyn_reloc() 3713 int dynindx; in sh_elf_initialize_funcdesc() local [all …]
|
D | elf64-hppa.c | 974 if (eh->dynindx == -1 && eh->type != STT_PARISC_MILLI) in allocate_global_data_dlt() 1067 || (hh->eh.dynindx == -1 && hh->eh.type != STT_PARISC_MILLI) in allocate_global_data_opd() 1076 && (hh == NULL || (hh->eh.dynindx == -1))) in allocate_global_data_opd() 1431 if (eh->dynindx == -1 && eh->type != STT_PARISC_MILLI) in allocate_dynrel_entries() 1511 if (eh->dynindx != -1) in elf64_hppa_mark_milli_and_exported_functions() 1513 eh->dynindx = -1; in elf64_hppa_mark_milli_and_exported_functions() 2028 rel.r_info = ELF64_R_INFO (hh->eh.dynindx, R_PARISC_IPLT); in elf64_hppa_finish_dynamic_symbol() 2159 int dynindx; in elf64_hppa_finalize_opd() local 2164 if (eh->dynindx != -1) in elf64_hppa_finalize_opd() 2165 dynindx = eh->dynindx; in elf64_hppa_finalize_opd() [all …]
|
D | elf32-bfin.c | 1257 if (h->dynindx == -1 && !h->forced_local) in bfin_check_relocs() 1508 || h->dynindx == -1 in bfin_relocate_section() 1854 ((H)->dynindx == -1 || ! elf_hash_table (INFO)->dynamic_sections_created) 2074 int reloc_type, long dynindx, bfd_vma addend, in _bfinfdpic_add_dyn_reloc() argument 2081 outrel.r_info = ELF32_R_INFO (dynindx, reloc_type); in _bfinfdpic_add_dyn_reloc() 2167 int dynindx = -1; in _bfinfdpic_emit_got_relocs_plt_entries() local 2177 if (entry->symndx == -1 && entry->d.h->dynindx != -1) in _bfinfdpic_emit_got_relocs_plt_entries() 2178 dynindx = entry->d.h->dynindx; in _bfinfdpic_emit_got_relocs_plt_entries() 2185 dynindx = elf_section_data (sec->output_section)->dynindx; in _bfinfdpic_emit_got_relocs_plt_entries() 2187 dynindx = 0; in _bfinfdpic_emit_got_relocs_plt_entries() [all …]
|
D | elf32-frv.c | 977 ((H)->dynindx == -1 || ! elf_hash_table (INFO)->dynamic_sections_created) 1228 int reloc_type, long dynindx, bfd_vma addend, in _frvfdpic_add_dyn_reloc() argument 1235 outrel.r_info = ELF32_R_INFO (dynindx, reloc_type); in _frvfdpic_add_dyn_reloc() 1337 int dynindx = -1; in _frvfdpic_emit_got_relocs_plt_entries() local 1348 if (entry->symndx == -1 && entry->d.h->dynindx != -1) in _frvfdpic_emit_got_relocs_plt_entries() 1349 dynindx = entry->d.h->dynindx; in _frvfdpic_emit_got_relocs_plt_entries() 1356 dynindx = elf_section_data (sec->output_section)->dynindx; in _frvfdpic_emit_got_relocs_plt_entries() 1358 dynindx = 0; in _frvfdpic_emit_got_relocs_plt_entries() 1365 int idx = dynindx; in _frvfdpic_emit_got_relocs_plt_entries() 1379 idx = elf_section_data (sec->output_section)->dynindx; in _frvfdpic_emit_got_relocs_plt_entries() [all …]
|
D | elf32-s390.c | 1795 if (h->dynindx == -1 in allocate_dynrelocs() 1856 && h->dynindx == -1 in allocate_dynrelocs() 1878 if (h->dynindx == -1 in allocate_dynrelocs() 1894 if ((tls_type == GOT_TLS_GD && h->dynindx == -1) in allocate_dynrelocs() 1944 else if (h->dynindx == -1 in allocate_dynrelocs() 1967 if (h->dynindx == -1 in allocate_dynrelocs() 1976 if (h->dynindx != -1) in allocate_dynrelocs() 2758 if (h->dynindx == -1 in elf_s390_relocate_section() 2770 outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); in elf_s390_relocate_section() 2803 && h->dynindx != -1 in elf_s390_relocate_section() [all …]
|
D | elf64-s390.c | 1743 if (h->dynindx == -1 in allocate_dynrelocs() 1804 && h->dynindx == -1 in allocate_dynrelocs() 1826 if (h->dynindx == -1 in allocate_dynrelocs() 1842 if ((tls_type == GOT_TLS_GD && h->dynindx == -1) in allocate_dynrelocs() 1892 else if (h->dynindx == -1 in allocate_dynrelocs() 1915 if (h->dynindx == -1 in allocate_dynrelocs() 1924 if (h->dynindx != -1) in allocate_dynrelocs() 2724 if (h->dynindx == -1 in elf_s390_relocate_section() 2736 outrel.r_info = ELF64_R_INFO (h->dynindx, r_type); in elf_s390_relocate_section() 2770 && h->dynindx != -1 in elf_s390_relocate_section() [all …]
|
D | elf32-cris.c | 1092 && ((! info->symbolic && h->dynindx != -1) in cris_elf_relocate_section() 1143 BFD_ASSERT (h->dynindx != -1); in cris_elf_relocate_section() 1211 && (info->symbolic || h->dynindx == -1) in cris_elf_relocate_section() 1418 || h->dynindx == -1) in cris_elf_relocate_section() 1483 && ((! info->symbolic && h->dynindx != -1) in cris_elf_relocate_section() 1486 BFD_ASSERT (h->dynindx != -1); in cris_elf_relocate_section() 1487 outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); in cris_elf_relocate_section() 1520 indx = elf_section_data (osec)->dynindx; in cris_elf_relocate_section() 1524 indx = elf_section_data (osec)->dynindx; in cris_elf_relocate_section() 1744 if (h != NULL && h->dynindx != -1) in cris_elf_relocate_section() [all …]
|
D | elf32-or1k.c | 1019 && h->dynindx != -1 in or1k_elf_relocate_section() 1053 && ((! info->symbolic && h->dynindx != -1) in or1k_elf_relocate_section() 1056 BFD_ASSERT (h->dynindx != -1); in or1k_elf_relocate_section() 1057 outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); in or1k_elf_relocate_section() 1153 if (h != NULL && h->dynindx != -1) in or1k_elf_relocate_section() 1155 rela.r_info = ELF32_R_INFO (h->dynindx, in or1k_elf_relocate_section() 1188 if (h != NULL && h->dynindx != -1) in or1k_elf_relocate_section() 1190 rela.r_info = ELF32_R_INFO (h->dynindx, R_OR1K_TLS_TPOFF); in or1k_elf_relocate_section() 1890 BFD_ASSERT (h->dynindx != -1); in or1k_elf_finish_dynamic_symbol() 1951 rela.r_info = ELF32_R_INFO (h->dynindx, R_OR1K_JMP_SLOT); in or1k_elf_finish_dynamic_symbol() [all …]
|
D | elf64-sh64.c | 1596 || (! info->symbolic && h->dynindx != -1) in sh_elf64_relocate_section() 1604 && ((! info->symbolic && h->dynindx != -1) in sh_elf64_relocate_section() 1698 && h->dynindx != -1 in sh_elf64_relocate_section() 1737 BFD_ASSERT (h != NULL && h->dynindx != -1); in sh_elf64_relocate_section() 1738 outrel.r_info = ELF64_R_INFO (h->dynindx, R_SH_64_PCREL); in sh_elf64_relocate_section() 1746 || ((info->symbolic || h->dynindx == -1) in sh_elf64_relocate_section() 1755 BFD_ASSERT (h->dynindx != -1); in sh_elf64_relocate_section() 1756 outrel.r_info = ELF64_R_INFO (h->dynindx, R_SH_64); in sh_elf64_relocate_section() 1790 || h->dynindx == -1 in sh_elf64_relocate_section() 1842 && (info->symbolic || h->dynindx == -1 in sh_elf64_relocate_section() [all …]
|
D | elf32-vax.c | 1328 if (h->dynindx == -1) in elf_vax_instantiate_got_entries() 1427 || (! info->symbolic && h->dynindx != -1) in elf_vax_relocate_section() 1430 && ((! info->symbolic && h->dynindx != -1) in elf_vax_relocate_section() 1603 && ((! info->symbolic && h->dynindx != -1) in elf_vax_relocate_section() 1606 BFD_ASSERT (h->dynindx != -1); in elf_vax_relocate_section() 1607 outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); in elf_vax_relocate_section() 1641 indx = elf_section_data (osec)->dynindx; in elf_vax_relocate_section() 1647 indx = elf_section_data (osec)->dynindx; in elf_vax_relocate_section() 1772 BFD_ASSERT (h->dynindx != -1); in elf_vax_finish_dynamic_symbol() 1816 rela.r_info = ELF32_R_INFO (h->dynindx, R_VAX_JMP_SLOT); in elf_vax_finish_dynamic_symbol() [all …]
|
D | elf32-tilepro.c | 2218 if (h->dynindx == -1 in allocate_dynrelocs() 2274 && h->dynindx == -1 in allocate_dynrelocs() 2285 if (h->dynindx == -1 in allocate_dynrelocs() 2347 else if (h->dynindx == -1 in allocate_dynrelocs() 2370 if (h->dynindx == -1 in allocate_dynrelocs() 2379 if (h->dynindx != -1) in allocate_dynrelocs() 2951 && (h == NULL || h->dynindx == -1)); in tilepro_elf_relocate_section() 3027 if (!info->shared && (h == NULL || h->dynindx == -1)) in tilepro_elf_relocate_section() 3215 && h->dynindx != -1 in tilepro_elf_relocate_section() 3253 if (h->dynindx == -1) in tilepro_elf_relocate_section() [all …]
|
D | elf32-m32r.c | 1951 if (h->dynindx == -1 in allocate_dynrelocs() 2010 if (h->dynindx == -1 in allocate_dynrelocs() 2066 else if (h->dynindx == -1 in allocate_dynrelocs() 2089 if (h->dynindx == -1 in allocate_dynrelocs() 2098 if (h->dynindx != -1) in allocate_dynrelocs() 2525 || (! info->symbolic && h->dynindx != -1) in m32r_elf_relocate_section() 2528 && ((! info->symbolic && h->dynindx != -1) in m32r_elf_relocate_section() 2735 || h->dynindx == -1 in m32r_elf_relocate_section() 2861 && h->dynindx != -1 in m32r_elf_relocate_section() 2901 BFD_ASSERT (h != NULL && h->dynindx != -1); in m32r_elf_relocate_section() [all …]
|
D | elfxx-sparc.c | 1097 ret->elf.dynindx = -1; in elf_sparc_get_local_sym_hash() 2243 if (h->dynindx == -1 in allocate_dynrelocs() 2338 && h->dynindx == -1 in allocate_dynrelocs() 2349 if (h->dynindx == -1 in allocate_dynrelocs() 2366 if ((tls_type == GOT_TLS_GD && h->dynindx == -1) in allocate_dynrelocs() 2428 else if (h->dynindx == -1 in allocate_dynrelocs() 2451 if (h->dynindx == -1 in allocate_dynrelocs() 2460 if (h->dynindx != -1) in allocate_dynrelocs() 3110 if (h->dynindx == -1 in _bfd_sparc_elf_relocate_section() 3120 if (h->dynindx == -1) in _bfd_sparc_elf_relocate_section() [all …]
|
D | elfxx-tilegx.c | 2485 if (h->dynindx == -1 in allocate_dynrelocs() 2542 && h->dynindx == -1 in allocate_dynrelocs() 2553 if (h->dynindx == -1 in allocate_dynrelocs() 2614 else if (h->dynindx == -1 in allocate_dynrelocs() 2637 if (h->dynindx == -1 in allocate_dynrelocs() 2646 if (h->dynindx != -1) in allocate_dynrelocs() 3251 && (h == NULL || h->dynindx == -1)); in tilegx_elf_relocate_section() 3396 && (h == NULL || h->dynindx == -1)) in tilegx_elf_relocate_section() 3622 && h->dynindx != -1 in tilegx_elf_relocate_section() 3661 if (h->dynindx == -1) in tilegx_elf_relocate_section() [all …]
|
D | elf32-metag.c | 1575 && hh->eh.dynindx != -1 in elf_metag_relocate_section() 1614 BFD_ASSERT (hh != NULL && hh->eh.dynindx != -1); in elf_metag_relocate_section() 1615 outrel.r_info = ELF32_R_INFO (hh->eh.dynindx, r_type); in elf_metag_relocate_section() 1623 || ((info->symbolic || hh->eh.dynindx == -1) in elf_metag_relocate_section() 1632 BFD_ASSERT (hh->eh.dynindx != -1); in elf_metag_relocate_section() 1633 outrel.r_info = ELF32_R_INFO (hh->eh.dynindx, r_type); in elf_metag_relocate_section() 1799 indx = hh->eh.dynindx; in elf_metag_relocate_section() 2618 if (eh->dynindx == -1 in allocate_dynrelocs() 2678 if (eh->dynindx == -1 in allocate_dynrelocs() 2695 if ((tls_type == GOT_TLS_GD && eh->dynindx == -1) in allocate_dynrelocs() [all …]
|
D | elflink.c | 406 if (h->dynindx == -1) in bfd_elf_link_record_dynamic_symbol() 433 h->dynindx = elf_hash_table (info)->dynsymcount; in bfd_elf_link_record_dynamic_symbol() 585 && h->dynindx != -1 in bfd_elf_record_link_assignment() 594 && h->dynindx == -1) in bfd_elf_record_link_assignment() 603 && h->u.weakdef->dynindx == -1) in bfd_elf_record_link_assignment() 713 return e->dynindx; in _bfd_elf_link_lookup_local_dynindx() 730 if (h->dynindx != -1) in elf_link_renumber_hash_table_dynsyms() 731 h->dynindx = ++(*count); in elf_link_renumber_hash_table_dynsyms() 749 if (h->dynindx != -1) in elf_link_renumber_local_hash_table_dynsyms() 750 h->dynindx = ++(*count); in elf_link_renumber_local_hash_table_dynsyms() [all …]
|
D | elf32-i386.c | 924 ret->elf.dynindx = -1; in elf_i386_get_local_sym_hash() 1325 && h->dynindx == -1 in elf_i386_tls_transition() 2206 if (h->dynindx == -1 in elf_i386_allocate_dynrelocs() 2287 && h->dynindx == -1 in elf_i386_allocate_dynrelocs() 2298 if (h->dynindx == -1 in elf_i386_allocate_dynrelocs() 2330 else if ((GOT_TLS_GD_P (tls_type) && h->dynindx == -1) in elf_i386_allocate_dynrelocs() 2401 else if (h->dynindx == -1 in elf_i386_allocate_dynrelocs() 2424 if (h->dynindx == -1 in elf_i386_allocate_dynrelocs() 2433 if (h->dynindx != -1) in elf_i386_allocate_dynrelocs() 3399 if (h->dynindx == -1 in elf_i386_relocate_section() [all …]
|
D | elf32-microblaze.c | 1241 indx = h->dynindx; in microblaze_elf_relocate_section() 1427 && h->dynindx != -1 in microblaze_elf_relocate_section() 1432 && h->dynindx != -1 in microblaze_elf_relocate_section() 1466 && ((! info->symbolic && h->dynindx != -1) in microblaze_elf_relocate_section() 1469 BFD_ASSERT (h->dynindx != -1); in microblaze_elf_relocate_section() 1470 outrel.r_info = ELF32_R_INFO (h->dynindx, r_type); in microblaze_elf_relocate_section() 2782 if (h->dynindx == -1 in allocate_dynrelocs() 2841 if (h->dynindx == -1 in allocate_dynrelocs() 2928 if (h->dynindx == -1 in allocate_dynrelocs() 2937 if (h->dynindx != -1) in allocate_dynrelocs() [all …]
|
D | elf32-score7.c | 924 if (h->root.dynindx == -1) in score_elf_sort_hash_table_f() 935 h->root.dynindx = hsd->max_unref_got_dynindx++; in score_elf_sort_hash_table_f() 938 h->root.dynindx = hsd->max_non_got_dynindx++; in score_elf_sort_hash_table_f() 941 h->root.dynindx = --hsd->min_got_dynindx; in score_elf_sort_hash_table_f() 1194 && h->root.dynindx != -1) in score_elf_create_dynamic_relocation() 1196 indx = h->root.dynindx; in score_elf_create_dynamic_relocation() 1506 if (h->dynindx == -1) in score_elf_record_global_got_symbol() 1615 global_got_dynindx = g->global_gotsym->dynindx; in score_elf_global_got_index() 1621 BFD_ASSERT (h->dynindx >= global_got_dynindx); in score_elf_global_got_index() 1622 got_index = ((h->dynindx - global_got_dynindx + g->local_gotno) * SCORE_ELF_GOT_SIZE (abfd)); in score_elf_global_got_index() [all …]
|
D | elf-ifunc.c | 129 && (h->dynindx != -1 in _bfd_elf_allocate_ifunc_dyn_relocs() 256 && (h->dynindx == -1 in _bfd_elf_allocate_ifunc_dyn_relocs()
|
D | elf32-tic6x.c | 1710 int dynindx; in elf32_tic6x_make_got_dynreloc() local 1718 dynindx = elf_section_data (sym_sec->output_section)->dynindx; in elf32_tic6x_make_got_dynreloc() 1723 dynindx = 0; in elf32_tic6x_make_got_dynreloc() 1725 outrel.r_info = ELF32_R_INFO (dynindx, R_C6000_ABS32); in elf32_tic6x_make_got_dynreloc() 1763 if ((h->dynindx == -1 in elf32_tic6x_finish_dynamic_symbol() 1820 rela.r_info = ELF32_R_INFO (h->dynindx, R_C6000_JUMP_SLOT); in elf32_tic6x_finish_dynamic_symbol() 1853 || h->dynindx == -1 || h->forced_local) && h->def_regular) in elf32_tic6x_finish_dynamic_symbol() 1867 outrel.r_info = ELF32_R_INFO (h->dynindx, R_C6000_ABS32); in elf32_tic6x_finish_dynamic_symbol() 1880 if (h->dynindx == -1 in elf32_tic6x_finish_dynamic_symbol() 1889 rel.r_info = ELF32_R_INFO (h->dynindx, R_C6000_COPY); in elf32_tic6x_finish_dynamic_symbol() [all …]
|