| /netbsd/src/external/gpl3/binutils/dist/bfd/ |
| D | elf-ifunc.c | 115 asection *plt, *gotplt, *relplt; in _bfd_elf_allocate_ifunc_dyn_relocs() local 121 bool use_plt = !avoid_plt || h->plt.refcount > 0; in _bfd_elf_allocate_ifunc_dyn_relocs() 181 if (h->plt.refcount <= 0 && h->got.refcount <= 0) in _bfd_elf_allocate_ifunc_dyn_relocs() 184 h->plt = htab->init_plt_offset; in _bfd_elf_allocate_ifunc_dyn_relocs() 193 if (h->plt.refcount > 0 in _bfd_elf_allocate_ifunc_dyn_relocs() 197 h->plt = htab->init_plt_offset; in _bfd_elf_allocate_ifunc_dyn_relocs() 213 plt = htab->splt; in _bfd_elf_allocate_ifunc_dyn_relocs() 219 if (plt->size == 0 && use_plt) in _bfd_elf_allocate_ifunc_dyn_relocs() 220 plt->size += plt_header_size; in _bfd_elf_allocate_ifunc_dyn_relocs() 224 plt = htab->iplt; in _bfd_elf_allocate_ifunc_dyn_relocs() [all …]
|
| D | elf32-s390.c | 691 } plt; member 938 struct plt_entry *plt; in elf_s390_check_relocs() local 952 plt = elf_s390_local_plt (abfd); in elf_s390_check_relocs() 953 plt[r_symndx].plt.refcount++; in elf_s390_check_relocs() 1062 h->plt.refcount += 1; in elf_s390_check_relocs() 1083 h->plt.refcount += 1; in elf_s390_check_relocs() 1206 h->plt.refcount += 1; in elf_s390_check_relocs() 1427 if (h->plt.refcount <= 0) in elf_s390_adjust_dynamic_symbol() 1428 h->plt.refcount = 1; in elf_s390_adjust_dynamic_symbol() 1430 h->plt.refcount += 1; in elf_s390_adjust_dynamic_symbol() [all …]
|
| D | elfnn-loongarch.c | 322 ret->elf.plt.refcount = -1; in elfNN_loongarch_get_local_sym_hash() 815 if (h->plt.refcount < 0) in loongarch_elf_check_relocs() 816 h->plt.refcount = 0; in loongarch_elf_check_relocs() 817 h->plt.refcount++; in loongarch_elf_check_relocs() 911 if (h->plt.refcount < 0) in loongarch_elf_check_relocs() 912 h->plt.refcount = 0; in loongarch_elf_check_relocs() 913 h->plt.refcount++; in loongarch_elf_check_relocs() 932 if (h->plt.refcount < 0) in loongarch_elf_check_relocs() 933 h->plt.refcount = 0; in loongarch_elf_check_relocs() 934 h->plt.refcount++; in loongarch_elf_check_relocs() [all …]
|
| D | elf32-i386.c | 1637 h->plt.refcount = 1; in elf_i386_scan_relocs() 1839 h->plt.refcount = 1; in elf_i386_scan_relocs() 2087 plt_entry_size = htab->plt.plt_entry_size; in elf_i386_relocate_section() 2295 plt_offset = h->plt.offset; in elf_i386_relocate_section() 2302 plt_offset = h->plt.offset; in elf_i386_relocate_section() 2325 if (h->plt.offset == (bfd_vma) -1) in elf_i386_relocate_section() 2330 plt_index = (h->plt.offset / plt_entry_size in elf_i386_relocate_section() 2331 - htab->plt.has_plt0); in elf_i386_relocate_section() 2337 plt_index = h->plt.offset / plt_entry_size; in elf_i386_relocate_section() 2393 if (h->plt.offset == (bfd_vma) -1) in elf_i386_relocate_section() [all …]
|
| D | elf32-vax.c | 673 if (h->plt.refcount == -1) in elf_vax_check_relocs() 674 h->plt.refcount = 1; in elf_vax_check_relocs() 676 h->plt.refcount++; in elf_vax_check_relocs() 705 if (h->plt.refcount == -1) in elf_vax_check_relocs() 706 h->plt.refcount = 1; in elf_vax_check_relocs() 708 h->plt.refcount++; in elf_vax_check_relocs() 726 if (h->plt.refcount == -1) in elf_vax_check_relocs() 727 h->plt.refcount = 1; in elf_vax_check_relocs() 729 h->plt.refcount++; in elf_vax_check_relocs() 877 if (h->plt.refcount <= 0 in elf_vax_adjust_dynamic_symbol() [all …]
|
| D | elf64-s390.c | 608 } plt; member 860 struct plt_entry *plt; in elf_s390_check_relocs() local 874 plt = elf_s390_local_plt (abfd); in elf_s390_check_relocs() 875 plt[r_symndx].plt.refcount++; in elf_s390_check_relocs() 992 h->plt.refcount += 1; in elf_s390_check_relocs() 1014 h->plt.refcount += 1; in elf_s390_check_relocs() 1140 h->plt.refcount += 1; in elf_s390_check_relocs() 1362 if (h->plt.refcount <= 0) in elf_s390_adjust_dynamic_symbol() 1363 h->plt.refcount = 1; in elf_s390_adjust_dynamic_symbol() 1365 h->plt.refcount += 1; in elf_s390_adjust_dynamic_symbol() [all …]
|
| D | elf32-or1k.c | 1424 && h->plt.offset != (bfd_vma) -1) in or1k_elf_relocate_section() 1425 relocation = plt_base + h->plt.offset; in or1k_elf_relocate_section() 2071 h->plt.refcount += 1; in or1k_elf_check_relocs() 2140 h->plt.refcount += 1; in or1k_elf_check_relocs() 2384 unsigned plt[PLT_MAX_INSN_COUNT]; in or1k_elf_finish_dynamic_sections() local 2396 plt[0] = OR1K_ADRP(12) | pa; in or1k_elf_finish_dynamic_sections() 2397 plt[1] = OR1K_LWZ(15,12) | (po + 8); in or1k_elf_finish_dynamic_sections() 2398 plt[2] = OR1K_LWZ(12,12) | (po + 4); in or1k_elf_finish_dynamic_sections() 2402 plt[0] = OR1K_LWZ(15, 16) | 8; /* .got+8 */ in or1k_elf_finish_dynamic_sections() 2403 plt[1] = OR1K_LWZ(12, 16) | 4; /* .got+4 */ in or1k_elf_finish_dynamic_sections() [all …]
|
| D | elf64-x86-64.c | 2307 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2316 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2379 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2423 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2625 plt_entry_size = htab->plt.plt_entry_size; in elf_x86_64_relocate_section() 2808 if (h->plt.offset == (bfd_vma) -1) in elf_x86_64_relocate_section() 2813 plt_index = (h->plt.offset / plt_entry_size in elf_x86_64_relocate_section() 2814 - htab->plt.has_plt0); in elf_x86_64_relocate_section() 2820 plt_index = h->plt.offset / plt_entry_size; in elf_x86_64_relocate_section() 2857 if (h->plt.offset == (bfd_vma) -1) in elf_x86_64_relocate_section() [all …]
|
| D | elf32-ppc.c | 1312 const asection *plt ATTRIBUTE_UNUSED, in ppc_elf_plt_sym_val() 1803 asection *plt, *relplt, *dynamic, *glink; in ppc_elf_get_synthetic_symtab() local 1826 plt = bfd_get_section_by_name (abfd, ".plt"); in ppc_elf_get_synthetic_symtab() 1827 if (plt == NULL) in ppc_elf_get_synthetic_symtab() 1831 if (elf_section_flags (plt) & SHF_EXECINSTR) in ppc_elf_get_synthetic_symtab() 1878 if (bfd_get_section_contents (abfd, plt, buf, 0, 4)) in ppc_elf_get_synthetic_symtab() 2047 } plt; member 2570 if (eind->elf.plt.plist != NULL) in ppc_elf_copy_indirect_symbol() 2572 if (edir->elf.plt.plist != NULL) in ppc_elf_copy_indirect_symbol() 2577 for (entp = &eind->elf.plt.plist; (ent = *entp) != NULL; ) in ppc_elf_copy_indirect_symbol() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/bfd/ |
| D | elf-ifunc.c | 115 asection *plt, *gotplt, *relplt; in _bfd_elf_allocate_ifunc_dyn_relocs() local 121 bool use_plt = !avoid_plt || h->plt.refcount > 0; in _bfd_elf_allocate_ifunc_dyn_relocs() 181 if (h->plt.refcount <= 0 && h->got.refcount <= 0) in _bfd_elf_allocate_ifunc_dyn_relocs() 184 h->plt = htab->init_plt_offset; in _bfd_elf_allocate_ifunc_dyn_relocs() 193 if (h->plt.refcount > 0 in _bfd_elf_allocate_ifunc_dyn_relocs() 197 h->plt = htab->init_plt_offset; in _bfd_elf_allocate_ifunc_dyn_relocs() 213 plt = htab->splt; in _bfd_elf_allocate_ifunc_dyn_relocs() 219 if (plt->size == 0 && use_plt) in _bfd_elf_allocate_ifunc_dyn_relocs() 220 plt->size += plt_header_size; in _bfd_elf_allocate_ifunc_dyn_relocs() 224 plt = htab->iplt; in _bfd_elf_allocate_ifunc_dyn_relocs() [all …]
|
| D | elf32-s390.c | 691 } plt; member 938 struct plt_entry *plt; in elf_s390_check_relocs() local 952 plt = elf_s390_local_plt (abfd); in elf_s390_check_relocs() 953 plt[r_symndx].plt.refcount++; in elf_s390_check_relocs() 1062 h->plt.refcount += 1; in elf_s390_check_relocs() 1083 h->plt.refcount += 1; in elf_s390_check_relocs() 1206 h->plt.refcount += 1; in elf_s390_check_relocs() 1427 if (h->plt.refcount <= 0) in elf_s390_adjust_dynamic_symbol() 1428 h->plt.refcount = 1; in elf_s390_adjust_dynamic_symbol() 1430 h->plt.refcount += 1; in elf_s390_adjust_dynamic_symbol() [all …]
|
| D | elfnn-loongarch.c | 351 ret->elf.plt.refcount = -1; in elfNN_loongarch_get_local_sym_hash() 876 if (h->plt.refcount < 0) in loongarch_elf_check_relocs() 877 h->plt.refcount = 0; in loongarch_elf_check_relocs() 878 h->plt.refcount++; in loongarch_elf_check_relocs() 974 if (h->plt.refcount < 0) in loongarch_elf_check_relocs() 975 h->plt.refcount = 0; in loongarch_elf_check_relocs() 976 h->plt.refcount++; in loongarch_elf_check_relocs() 995 if (h->plt.refcount < 0) in loongarch_elf_check_relocs() 996 h->plt.refcount = 0; in loongarch_elf_check_relocs() 997 h->plt.refcount++; in loongarch_elf_check_relocs() [all …]
|
| D | elf32-vax.c | 654 if (h->plt.refcount == -1) in elf_vax_check_relocs() 655 h->plt.refcount = 1; in elf_vax_check_relocs() 657 h->plt.refcount++; in elf_vax_check_relocs() 686 if (h->plt.refcount == -1) in elf_vax_check_relocs() 687 h->plt.refcount = 1; in elf_vax_check_relocs() 689 h->plt.refcount++; in elf_vax_check_relocs() 707 if (h->plt.refcount == -1) in elf_vax_check_relocs() 708 h->plt.refcount = 1; in elf_vax_check_relocs() 710 h->plt.refcount++; in elf_vax_check_relocs() 851 if (h->plt.refcount <= 0 in elf_vax_adjust_dynamic_symbol() [all …]
|
| D | elf32-i386.c | 1631 h->plt.refcount = 1; in elf_i386_scan_relocs() 1833 h->plt.refcount = 1; in elf_i386_scan_relocs() 2080 plt_entry_size = htab->plt.plt_entry_size; in elf_i386_relocate_section() 2288 plt_offset = h->plt.offset; in elf_i386_relocate_section() 2295 plt_offset = h->plt.offset; in elf_i386_relocate_section() 2318 if (h->plt.offset == (bfd_vma) -1) in elf_i386_relocate_section() 2323 plt_index = (h->plt.offset / plt_entry_size in elf_i386_relocate_section() 2324 - htab->plt.has_plt0); in elf_i386_relocate_section() 2330 plt_index = h->plt.offset / plt_entry_size; in elf_i386_relocate_section() 2386 if (h->plt.offset == (bfd_vma) -1) in elf_i386_relocate_section() [all …]
|
| D | elf32-or1k.c | 1424 && h->plt.offset != (bfd_vma) -1) in or1k_elf_relocate_section() 1425 relocation = plt_base + h->plt.offset; in or1k_elf_relocate_section() 2071 h->plt.refcount += 1; in or1k_elf_check_relocs() 2140 h->plt.refcount += 1; in or1k_elf_check_relocs() 2384 unsigned plt[PLT_MAX_INSN_COUNT]; in or1k_elf_finish_dynamic_sections() local 2396 plt[0] = OR1K_ADRP(12) | pa; in or1k_elf_finish_dynamic_sections() 2397 plt[1] = OR1K_LWZ(15,12) | (po + 8); in or1k_elf_finish_dynamic_sections() 2398 plt[2] = OR1K_LWZ(12,12) | (po + 4); in or1k_elf_finish_dynamic_sections() 2402 plt[0] = OR1K_LWZ(15, 16) | 8; /* .got+8 */ in or1k_elf_finish_dynamic_sections() 2403 plt[1] = OR1K_LWZ(12, 16) | 4; /* .got+4 */ in or1k_elf_finish_dynamic_sections() [all …]
|
| D | elf64-x86-64.c | 2353 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2362 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2425 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2469 h->plt.refcount = 1; in elf_x86_64_scan_relocs() 2690 plt_entry_size = htab->plt.plt_entry_size; in elf_x86_64_relocate_section() 2873 if (h->plt.offset == (bfd_vma) -1) in elf_x86_64_relocate_section() 2878 plt_index = (h->plt.offset / plt_entry_size in elf_x86_64_relocate_section() 2879 - htab->plt.has_plt0); in elf_x86_64_relocate_section() 2885 plt_index = h->plt.offset / plt_entry_size; in elf_x86_64_relocate_section() 2922 if (h->plt.offset == (bfd_vma) -1) in elf_x86_64_relocate_section() [all …]
|
| D | elf64-s390.c | 608 } plt; member 860 struct plt_entry *plt; in elf_s390_check_relocs() local 874 plt = elf_s390_local_plt (abfd); in elf_s390_check_relocs() 875 plt[r_symndx].plt.refcount++; in elf_s390_check_relocs() 992 h->plt.refcount += 1; in elf_s390_check_relocs() 1014 h->plt.refcount += 1; in elf_s390_check_relocs() 1140 h->plt.refcount += 1; in elf_s390_check_relocs() 1362 if (h->plt.refcount <= 0) in elf_s390_adjust_dynamic_symbol() 1363 h->plt.refcount = 1; in elf_s390_adjust_dynamic_symbol() 1365 h->plt.refcount += 1; in elf_s390_adjust_dynamic_symbol() [all …]
|
| D | elf32-ppc.c | 1312 const asection *plt ATTRIBUTE_UNUSED, in ppc_elf_plt_sym_val() 1803 asection *plt, *relplt, *dynamic, *glink; in ppc_elf_get_synthetic_symtab() local 1826 plt = bfd_get_section_by_name (abfd, ".plt"); in ppc_elf_get_synthetic_symtab() 1827 if (plt == NULL) in ppc_elf_get_synthetic_symtab() 1831 if (elf_section_flags (plt) & SHF_EXECINSTR) in ppc_elf_get_synthetic_symtab() 1878 if (bfd_get_section_contents (abfd, plt, buf, 0, 4)) in ppc_elf_get_synthetic_symtab() 2047 } plt; member 2570 if (eind->elf.plt.plist != NULL) in ppc_elf_copy_indirect_symbol() 2572 if (edir->elf.plt.plist != NULL) in ppc_elf_copy_indirect_symbol() 2577 for (entp = &eind->elf.plt.plist; (ent = *entp) != NULL; ) in ppc_elf_copy_indirect_symbol() [all …]
|
| D | elfxx-x86.c | 105 plt_entry_size = htab->plt.plt_entry_size; in elf_x86_allocate_dynrelocs() 116 && h->plt.refcount > 0 in elf_x86_allocate_dynrelocs() 121 h->plt.offset = (bfd_vma) -1; in elf_x86_allocate_dynrelocs() 134 h->plt.refcount = 1; in elf_x86_allocate_dynrelocs() 138 (htab->plt.has_plt0 in elf_x86_allocate_dynrelocs() 144 if (h->plt.offset != (bfd_vma) -1 && s != NULL) in elf_x86_allocate_dynrelocs() 161 && (h->plt.refcount > 0 in elf_x86_allocate_dynrelocs() 189 s->size = htab->plt.has_plt0 * plt_entry_size; in elf_x86_allocate_dynrelocs() 195 h->plt.offset = s->size; in elf_x86_allocate_dynrelocs() 234 h->root.u.def.value = h->plt.offset; in elf_x86_allocate_dynrelocs() [all …]
|
| /netbsd/src/sys/arch/macppc/stand/fixcoff/ |
| D | elf32_powerpc_merge.x | 25 .rel.plt : { *(.rel.plt) } in OUTPUT_ARCH() 26 .rela.plt : { *(.rela.plt) } in OUTPUT_ARCH() 28 .plt : { *(.plt) } in OUTPUT_ARCH() 53 *(.got.plt) *(.got) in OUTPUT_ARCH()
|
| /netbsd/src/sys/arch/rs6000/stand/boot/ |
| D | ld.script | 30 .rel.plt : { *(.rel.plt) } 31 .rela.plt : { *(.rela.plt) } 33 .plt : { *(.plt) } 56 .got : { *(.got.plt) *(.got) }
|
| /netbsd/src/sys/arch/bebox/stand/boot/ |
| D | ld.script | 30 .rel.plt : { *(.rel.plt) } 31 .rela.plt : { *(.rela.plt) } 33 .plt : { *(.plt) } 56 .got : { *(.got.plt) *(.got) }
|
| /netbsd/src/sys/arch/prep/stand/boot/ |
| D | ld.script | 30 .rel.plt : { *(.rel.plt) } 31 .rela.plt : { *(.rela.plt) } 33 .plt : { *(.plt) } 56 .got : { *(.got.plt) *(.got) }
|
| /netbsd/src/external/gpl3/binutils/dist/gold/ |
| D | ehframe.h | 177 Fde(Output_data* plt, const unsigned char* contents, size_t length, in Fde() argument 182 this->u_.from_linker.plt = plt; in Fde() 211 post_map(const Output_data* plt) const in post_map() argument 212 { return this->post_map() && this->u_.from_linker.plt == plt; } in post_map() 246 Output_data* plt; member 419 add_ehframe_for_plt(Output_data* plt, const unsigned char* cie_data, 425 remove_ehframe_for_plt(Output_data* plt, const unsigned char* cie_data,
|
| /netbsd/src/external/gpl3/binutils/dist/ld/emultempl/ |
| D | ppc32elf.em | 60 # No --secure-plt, --bss-plt, or --sdata-got for vxworks. 86 if (os->constraint == SPECIAL && strcmp (os->name, ".plt") == 0) 176 matters when we have an executable bss plt which will 294 { "secure-plt", no_argument, NULL, OPTION_NEW_PLT }, 295 { "bss-plt", no_argument, NULL, OPTION_OLD_PLT }, 296 { "plt-align", optional_argument, NULL, OPTION_PLT_ALIGN }, 297 { "no-plt-align", no_argument, NULL, OPTION_NO_PLT_ALIGN }, 324 --secure-plt Use new-style PLT if possible\n" 327 --bss-plt Force old-style BSS PLT\n" 330 --plt-align Align PLT call stubs to fit cache lines\n" [all …]
|