Home
last modified time | relevance | path

Searched refs:sym_hash (Results 1 – 25 of 33) sorted by relevance

12

/toolchain/binutils/binutils-2.25/bfd/
Dcofflink.c234 struct coff_link_hash_entry **sym_hash; in coff_link_add_symbols() local
258 sym_hash = (struct coff_link_hash_entry **) bfd_zalloc (abfd, amt); in coff_link_add_symbols()
259 if (sym_hash == NULL) in coff_link_add_symbols()
261 obj_coff_sym_hashes (abfd) = sym_hash; in coff_link_add_symbols()
338 *sym_hash = coff_link_hash_lookup (coff_hash_table (info), in coff_link_add_symbols()
340 if (*sym_hash != NULL) in coff_link_add_symbols()
342 if (((*sym_hash)->coff_link_hash_flags in coff_link_add_symbols()
344 && (*sym_hash)->root.type != bfd_link_hash_undefined in coff_link_add_symbols()
345 && (*sym_hash)->root.type != bfd_link_hash_undefweak) in coff_link_add_symbols()
384 if (*sym_hash == NULL) in coff_link_add_symbols()
[all …]
Delf-m10200.c514 struct elf_link_hash_entry *sym_hash = *sym_hashes; in mn10200_elf_relax_delete_bytes() local
515 if ((sym_hash->root.type == bfd_link_hash_defined in mn10200_elf_relax_delete_bytes()
516 || sym_hash->root.type == bfd_link_hash_defweak) in mn10200_elf_relax_delete_bytes()
517 && sym_hash->root.u.def.section == sec in mn10200_elf_relax_delete_bytes()
518 && sym_hash->root.u.def.value > addr in mn10200_elf_relax_delete_bytes()
519 && sym_hash->root.u.def.value < toaddr) in mn10200_elf_relax_delete_bytes()
521 sym_hash->root.u.def.value -= count; in mn10200_elf_relax_delete_bytes()
1258 struct elf_link_hash_entry *sym_hash = *sym_hashes; in mn10200_elf_symbol_address_p() local
1259 if ((sym_hash->root.type == bfd_link_hash_defined in mn10200_elf_symbol_address_p()
1260 || sym_hash->root.type == bfd_link_hash_defweak) in mn10200_elf_symbol_address_p()
[all …]
Delf-m10300.c2520 struct elf_link_hash_entry *sym_hash = *sym_hashes; in mn10300_elf_relax_delete_bytes() local
2522 if ((sym_hash->root.type == bfd_link_hash_defined in mn10300_elf_relax_delete_bytes()
2523 || sym_hash->root.type == bfd_link_hash_defweak) in mn10300_elf_relax_delete_bytes()
2524 && sym_hash->root.u.def.section == sec in mn10300_elf_relax_delete_bytes()
2525 && sym_hash->root.u.def.value > addr in mn10300_elf_relax_delete_bytes()
2526 && sym_hash->root.u.def.value < toaddr) in mn10300_elf_relax_delete_bytes()
2528 if (sym_hash->root.u.def.value < addr + count) in mn10300_elf_relax_delete_bytes()
2529 sym_hash->root.u.def.value = addr; in mn10300_elf_relax_delete_bytes()
2531 sym_hash->root.u.def.value -= count; in mn10300_elf_relax_delete_bytes()
2534 else if (sym_hash->root.type == bfd_link_hash_defined in mn10300_elf_relax_delete_bytes()
[all …]
Delf32-msp430.c1553 struct elf_link_hash_entry *sym_hash = *sym_hashes; in msp430_elf_symbol_address_p() local
1555 if ((sym_hash->root.type == bfd_link_hash_defined in msp430_elf_symbol_address_p()
1556 || sym_hash->root.type == bfd_link_hash_defweak) in msp430_elf_symbol_address_p()
1557 && sym_hash->root.u.def.section == sec in msp430_elf_symbol_address_p()
1558 && sym_hash->root.u.def.value == addr) in msp430_elf_symbol_address_p()
1662 struct elf_link_hash_entry *sym_hash = *sym_hashes; in msp430_elf_relax_delete_bytes() local
1664 if ((sym_hash->root.type == bfd_link_hash_defined in msp430_elf_relax_delete_bytes()
1665 || sym_hash->root.type == bfd_link_hash_defweak) in msp430_elf_relax_delete_bytes()
1666 && sym_hash->root.u.def.section == sec in msp430_elf_relax_delete_bytes()
1667 && sym_hash->root.u.def.value > addr in msp430_elf_relax_delete_bytes()
[all …]
Dxcofflink.c1207 struct xcoff_link_hash_entry **sym_hash; in xcoff_link_add_symbols() local
1262 sym_hash = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols()
1263 if (sym_hash == NULL && symcount != 0) in xcoff_link_add_symbols()
1265 coff_data (abfd)->sym_hashes = (struct coff_link_hash_entry **) sym_hash; in xcoff_link_add_symbols()
1374 sym_hash += sym.n_numaux + 1; in xcoff_link_add_symbols()
1627 *sym_hash = h; in xcoff_link_add_symbols()
1925 *sym_hash = xcoff_link_hash_lookup (xcoff_hash_table (info), in xcoff_link_add_symbols()
1930 *sym_hash = ((struct xcoff_link_hash_entry *) in xcoff_link_add_symbols()
1934 if (*sym_hash == NULL) in xcoff_link_add_symbols()
1936 if (((*sym_hash)->root.type == bfd_link_hash_defined in xcoff_link_add_symbols()
[all …]
Delf32-m32c.c2010 struct elf_link_hash_entry * sym_hash = * sym_hashes; in m32c_elf_relax_delete_bytes() local
2012 if (sym_hash && in m32c_elf_relax_delete_bytes()
2013 (sym_hash->root.type == bfd_link_hash_defined in m32c_elf_relax_delete_bytes()
2014 || sym_hash->root.type == bfd_link_hash_defweak) in m32c_elf_relax_delete_bytes()
2015 && sym_hash->root.u.def.section == sec) in m32c_elf_relax_delete_bytes()
2017 if (sym_hash->root.u.def.value > addr in m32c_elf_relax_delete_bytes()
2018 && sym_hash->root.u.def.value < toaddr) in m32c_elf_relax_delete_bytes()
2020 sym_hash->root.u.def.value -= count; in m32c_elf_relax_delete_bytes()
2022 if (sym_hash->root.u.def.value < addr in m32c_elf_relax_delete_bytes()
2023 && sym_hash->root.u.def.value + sym_hash->size > addr in m32c_elf_relax_delete_bytes()
[all …]
Delf32-h8300.c1544 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_h8_relax_delete_bytes() local
1546 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_h8_relax_delete_bytes()
1547 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_h8_relax_delete_bytes()
1548 && sym_hash->root.u.def.section == sec in elf32_h8_relax_delete_bytes()
1549 && sym_hash->root.u.def.value > addr in elf32_h8_relax_delete_bytes()
1550 && sym_hash->root.u.def.value <= toaddr) in elf32_h8_relax_delete_bytes()
1551 sym_hash->root.u.def.value -= count; in elf32_h8_relax_delete_bytes()
1589 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_h8_symbol_address_p() local
1590 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_h8_symbol_address_p()
1591 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_h8_symbol_address_p()
[all …]
Delf32-avr.c1910 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_avr_relax_delete_bytes() local
1911 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_avr_relax_delete_bytes()
1912 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_avr_relax_delete_bytes()
1913 && sym_hash->root.u.def.section == sec) in elf32_avr_relax_delete_bytes()
1915 if (sym_hash->root.u.def.value > addr in elf32_avr_relax_delete_bytes()
1916 && sym_hash->root.u.def.value <= toaddr) in elf32_avr_relax_delete_bytes()
1917 sym_hash->root.u.def.value -= count; in elf32_avr_relax_delete_bytes()
1919 if (sym_hash->root.u.def.value <= addr in elf32_avr_relax_delete_bytes()
1920 && (sym_hash->root.u.def.value + sym_hash->size > addr)) in elf32_avr_relax_delete_bytes()
1925 BFD_ASSERT (sym_hash->root.u.def.value + sym_hash->size in elf32_avr_relax_delete_bytes()
[all …]
Delf32-crx.c677 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_crx_relax_delete_bytes() local
696 if (*cur_sym_hashes == sym_hash) in elf32_crx_relax_delete_bytes()
704 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_crx_relax_delete_bytes()
705 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_crx_relax_delete_bytes()
706 && sym_hash->root.u.def.section == sec in elf32_crx_relax_delete_bytes()
707 && sym_hash->root.u.def.value > addr in elf32_crx_relax_delete_bytes()
708 && sym_hash->root.u.def.value < toaddr) in elf32_crx_relax_delete_bytes()
709 sym_hash->root.u.def.value -= count; in elf32_crx_relax_delete_bytes()
Delf32-m68hc11.c1259 struct elf_link_hash_entry *sym_hash = *sym_hashes; in m68hc11_elf_relax_delete_bytes() local
1260 if ((sym_hash->root.type == bfd_link_hash_defined in m68hc11_elf_relax_delete_bytes()
1261 || sym_hash->root.type == bfd_link_hash_defweak) in m68hc11_elf_relax_delete_bytes()
1262 && sym_hash->root.u.def.section == sec in m68hc11_elf_relax_delete_bytes()
1263 && sym_hash->root.u.def.value > addr in m68hc11_elf_relax_delete_bytes()
1264 && sym_hash->root.u.def.value <= toaddr) in m68hc11_elf_relax_delete_bytes()
1266 sym_hash->root.u.def.value -= count; in m68hc11_elf_relax_delete_bytes()
Delf32-sh64.c405 struct elf_link_hash_entry ** sym_hash = elf_sym_hashes (abfd); in sh64_elf_add_symbol_hook() local
407 BFD_ASSERT (sym_hash != NULL); in sh64_elf_add_symbol_hook()
458 while (*sym_hash != NULL) in sh64_elf_add_symbol_hook()
459 sym_hash++; in sh64_elf_add_symbol_hook()
460 *sym_hash = h; in sh64_elf_add_symbol_hook()
Delf32-rl78.c1570 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_rl78_relax_delete_bytes() local
1572 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_rl78_relax_delete_bytes()
1573 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_rl78_relax_delete_bytes()
1574 && sym_hash->root.u.def.section == sec) in elf32_rl78_relax_delete_bytes()
1577 if (sym_hash->root.u.def.value > addr in elf32_rl78_relax_delete_bytes()
1578 && sym_hash->root.u.def.value < toaddr) in elf32_rl78_relax_delete_bytes()
1579 sym_hash->root.u.def.value -= count; in elf32_rl78_relax_delete_bytes()
1582 if (sym_hash->root.u.def.value < addr in elf32_rl78_relax_delete_bytes()
1583 && sym_hash->root.u.def.value + sym_hash->size > addr in elf32_rl78_relax_delete_bytes()
1584 && sym_hash->root.u.def.value + sym_hash->size < toaddr) in elf32_rl78_relax_delete_bytes()
[all …]
Delf32-v850.c2877 struct elf_link_hash_entry *sym_hash; in v850_elf_relax_delete_bytes() local
3025 sym_hash = elf_sym_hashes (abfd) [sym_index]; in v850_elf_relax_delete_bytes()
3028 && ((sym_hash)->root.type == bfd_link_hash_defined in v850_elf_relax_delete_bytes()
3029 || (sym_hash)->root.type == bfd_link_hash_defweak) in v850_elf_relax_delete_bytes()
3030 && (sym_hash)->root.u.def.section == sec in v850_elf_relax_delete_bytes()
3031 && (sym_hash)->root.u.def.value >= addr + count in v850_elf_relax_delete_bytes()
3032 && (sym_hash)->root.u.def.value < toaddr) in v850_elf_relax_delete_bytes()
3034 if ((sym_hash)->root.u.def.value + isym.st_size >= toaddr) in v850_elf_relax_delete_bytes()
3040 (sym_hash)->root.u.def.value -= count; in v850_elf_relax_delete_bytes()
3043 && ((sym_hash)->root.type == bfd_link_hash_defined in v850_elf_relax_delete_bytes()
[all …]
Delf32-ip2k.c767 struct elf_link_hash_entry *sym_hash = *sym_hashes; in adjust_all_relocations() local
769 if ((sym_hash->root.type == bfd_link_hash_defined in adjust_all_relocations()
770 || sym_hash->root.type == bfd_link_hash_defweak) in adjust_all_relocations()
771 && sym_hash->root.u.def.section == sec) in adjust_all_relocations()
773 if (addr <= sym_hash->root.u.def.value in adjust_all_relocations()
774 && sym_hash->root.u.def.value < endaddr) in adjust_all_relocations()
775 sym_hash->root.u.def.value += count; in adjust_all_relocations()
Dpdp11.c2738 struct aout_link_hash_entry **sym_hash; in aout_link_add_symbols() local
2761 sym_hash = bfd_alloc (abfd, in aout_link_add_symbols()
2763 if (sym_hash == NULL && sym_count != 0) in aout_link_add_symbols()
2765 obj_aout_sym_hashes (abfd) = sym_hash; in aout_link_add_symbols()
2773 for (; p < pend; p++, sym_hash++) in aout_link_add_symbols()
2782 *sym_hash = NULL; in aout_link_add_symbols()
2837 (struct bfd_link_hash_entry **) sym_hash))) in aout_link_add_symbols()
2845 if ((*sym_hash)->root.type == bfd_link_hash_common in aout_link_add_symbols()
2846 && ((*sym_hash)->root.u.c.p->alignment_power > in aout_link_add_symbols()
2848 (*sym_hash)->root.u.c.p->alignment_power = in aout_link_add_symbols()
[all …]
Delf32-rx.c1622 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_rx_relax_delete_bytes() local
1624 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_rx_relax_delete_bytes()
1625 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_rx_relax_delete_bytes()
1626 && sym_hash->root.u.def.section == sec) in elf32_rx_relax_delete_bytes()
1629 if (sym_hash->root.u.def.value > addr in elf32_rx_relax_delete_bytes()
1630 && sym_hash->root.u.def.value < toaddr) in elf32_rx_relax_delete_bytes()
1631 sym_hash->root.u.def.value -= count; in elf32_rx_relax_delete_bytes()
1634 if (sym_hash->root.u.def.value < addr in elf32_rx_relax_delete_bytes()
1635 && sym_hash->root.u.def.value + sym_hash->size > addr in elf32_rx_relax_delete_bytes()
1636 && sym_hash->root.u.def.value + sym_hash->size < toaddr) in elf32_rx_relax_delete_bytes()
[all …]
Daoutx.h2955 struct aout_link_hash_entry **sym_hash; in aout_link_add_symbols() local
2983 sym_hash = (struct aout_link_hash_entry **) bfd_alloc (abfd, amt); in aout_link_add_symbols()
2984 if (sym_hash == NULL) in aout_link_add_symbols()
2986 obj_aout_sym_hashes (abfd) = sym_hash; in aout_link_add_symbols()
2994 for (; p < pend; p++, sym_hash++) in aout_link_add_symbols()
3003 *sym_hash = NULL; in aout_link_add_symbols()
3034 ++sym_hash; in aout_link_add_symbols()
3133 (struct bfd_link_hash_entry **) sym_hash))) in aout_link_add_symbols()
3141 if ((*sym_hash)->root.type == bfd_link_hash_common in aout_link_add_symbols()
3142 && ((*sym_hash)->root.u.c.p->alignment_power > in aout_link_add_symbols()
[all …]
Delf32-microblaze.c1670 struct elf_link_hash_entry *sym_hash; in microblaze_elf_relax_section() local
2131 sym_hash = elf_sym_hashes (abfd)[sym_index]; in microblaze_elf_relax_section()
2132 if ((sym_hash->root.type == bfd_link_hash_defined in microblaze_elf_relax_section()
2133 || sym_hash->root.type == bfd_link_hash_defweak) in microblaze_elf_relax_section()
2134 && sym_hash->root.u.def.section == sec) in microblaze_elf_relax_section()
2136 sym_hash->root.u.def.value -= calc_fixup (sym_hash->root.u.def.value, in microblaze_elf_relax_section()
2138 if (sym_hash->size) in microblaze_elf_relax_section()
2139 sym_hash->size -= calc_fixup (sym_hash->root.u.def.value, in microblaze_elf_relax_section()
2140 sym_hash->size, sec); in microblaze_elf_relax_section()
Delf32-cr16.c1347 struct elf_link_hash_entry *sym_hash = *sym_hashes; in elf32_cr16_relax_delete_bytes() local
1365 if (*cur_sym_hashes == sym_hash) in elf32_cr16_relax_delete_bytes()
1373 if ((sym_hash->root.type == bfd_link_hash_defined in elf32_cr16_relax_delete_bytes()
1374 || sym_hash->root.type == bfd_link_hash_defweak) in elf32_cr16_relax_delete_bytes()
1375 && sym_hash->root.u.def.section == sec in elf32_cr16_relax_delete_bytes()
1376 && sym_hash->root.u.def.value > addr in elf32_cr16_relax_delete_bytes()
1377 && sym_hash->root.u.def.value < toaddr) in elf32_cr16_relax_delete_bytes()
1378 sym_hash->root.u.def.value -= count; in elf32_cr16_relax_delete_bytes()
Dcoff-sh.c1071 struct coff_link_hash_entry **sym_hash; in sh_relax_delete_bytes() local
1447 sym_hash = obj_coff_sym_hashes (abfd); in sh_relax_delete_bytes()
1465 if (*sym_hash != NULL) in sh_relax_delete_bytes()
1467 BFD_ASSERT ((*sym_hash)->root.type == bfd_link_hash_defined in sh_relax_delete_bytes()
1468 || (*sym_hash)->root.type == bfd_link_hash_defweak); in sh_relax_delete_bytes()
1469 BFD_ASSERT ((*sym_hash)->root.u.def.value >= addr in sh_relax_delete_bytes()
1470 && (*sym_hash)->root.u.def.value < toaddr); in sh_relax_delete_bytes()
1471 (*sym_hash)->root.u.def.value -= count; in sh_relax_delete_bytes()
1476 sym_hash += isym.n_numaux + 1; in sh_relax_delete_bytes()
Delf64-ia64-vms.c4722 struct elf_link_hash_entry **sym_hash; in elf64_vms_link_add_object_symbols() local
4870 sym_hash = NULL; in elf64_vms_link_add_object_symbols()
4881 sym_hash = (struct elf_link_hash_entry **) bfd_alloc (abfd, amt); in elf64_vms_link_add_object_symbols()
4882 if (sym_hash == NULL) in elf64_vms_link_add_object_symbols()
4884 elf_sym_hashes (abfd) = sym_hash; in elf64_vms_link_add_object_symbols()
4889 isym++, sym_hash++) in elf64_vms_link_add_object_symbols()
4907 *sym_hash = NULL; in elf64_vms_link_add_object_symbols()
5009 *sym_hash = h; in elf64_vms_link_add_object_symbols()
5045 (struct bfd_link_hash_entry **) sym_hash))) in elf64_vms_link_add_object_symbols()
5048 h = *sym_hash; in elf64_vms_link_add_object_symbols()
[all …]
Decoff.c3255 struct bfd_link_hash_entry **sym_hash; in ecoff_link_add_externals() local
3264 sym_hash = (struct bfd_link_hash_entry **) bfd_alloc (abfd, amt); in ecoff_link_add_externals()
3265 if (!sym_hash) in ecoff_link_add_externals()
3267 ecoff_data (abfd)->sym_hashes = (struct ecoff_link_hash_entry **) sym_hash; in ecoff_link_add_externals()
3271 for (; ext_ptr < ext_end; ext_ptr += external_ext_size, sym_hash++) in ecoff_link_add_externals()
3280 *sym_hash = NULL; in ecoff_link_add_externals()
3401 section, value, NULL, TRUE, TRUE, sym_hash))) in ecoff_link_add_externals()
3404 h = (struct ecoff_link_hash_entry *) *sym_hash; in ecoff_link_add_externals()
Delf64-sh64.c2792 struct elf_link_hash_entry ** sym_hash = elf_sym_hashes (abfd); in sh64_elf64_add_symbol_hook() local
2794 BFD_ASSERT (sym_hash != NULL); in sh64_elf64_add_symbol_hook()
2845 while (*sym_hash != NULL) in sh64_elf64_add_symbol_hook()
2846 sym_hash++; in sh64_elf64_add_symbol_hook()
2847 *sym_hash = h; in sh64_elf64_add_symbol_hook()
Delflink.c897 struct elf_link_hash_entry **sym_hash, in _bfd_elf_merge_symbol() argument
929 *sym_hash = h; in _bfd_elf_merge_symbol()
3316 struct elf_link_hash_entry **sym_hash; in elf_link_add_object_symbols() local
3689 sym_hash = elf_sym_hashes (abfd); in elf_link_add_object_symbols()
3697 if (sym_hash == NULL) in elf_link_add_object_symbols()
3702 sym_hash = (struct elf_link_hash_entry **) bfd_zalloc (abfd, amt); in elf_link_add_object_symbols()
3703 if (sym_hash == NULL) in elf_link_add_object_symbols()
3705 elf_sym_hashes (abfd) = sym_hash; in elf_link_add_object_symbols()
3806 isym++, sym_hash++, ever = (ever != NULL ? ever + 1 : NULL)) in elf_link_add_object_symbols()
4087 sym_hash, &old_bfd, &old_weak, in elf_link_add_object_symbols()
[all …]
/toolchain/binutils/binutils-2.25/ld/
Dpe-dll.c682 struct coff_link_hash_entry *sym_hash; in process_def_file_and_drectve() local
683 sym_hash = coff_link_hash_lookup (coff_hash_table (info), in process_def_file_and_drectve()
685 if (sym_hash && sym_hash->root.type == bfd_link_hash_common in process_def_file_and_drectve()
686 && sym_hash->root.u.c.p->alignment_power < (unsigned) ac->alignment) in process_def_file_and_drectve()
688 sym_hash->root.u.c.p->alignment_power = (unsigned) ac->alignment; in process_def_file_and_drectve()

12