/freebsd-11-stable/contrib/llvm-project/lld/ELF/ |
H A D | SyntheticSections.cpp | 682 g.relocs.insert({&sym, 0}); 700 return getPageEntriesNum() + local16.size() + global.size() + relocs.size() + 717 count += relocs.size() + tls.size() + dynTlsSymbols.size() * 2; 774 if (!primGot.relocs.empty()) 775 return primGot.relocs.front().first; 791 set_union(tmp.relocs, src.relocs); 836 got.relocs.remove_if([&](const std::pair<Symbol *, size_t> &p) { 848 set_union(primGot->relocs, got.global); 849 set_union(primGot->relocs, go [all...] |
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | elf64-ppc.c | 202 with identical R_PPC64_RELATIVE relocs, there is really no need to 203 propagate .opd relocs; The dynamic linker should be taught to 1237 /* Marker relocs for TLS. */ 2192 /* Handle the R_PPC64_ADDR16_HA and similar relocs. */ 2450 /* A copy of relocs before they are modified for --emit-relocs. */ 3173 /* The linker needs to keep track of the number of relocs that it 3174 decides to copy as dynamic relocs in check_relocs for each symbol. 3186 /* Total number of relocs copied for the input section. */ 3189 /* Number of pc-relative relocs copie 4455 ppc64_elf_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 5045 Elf_Internal_Rela *relocs; local 5341 ppc64_elf_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 7988 bfd_boolean relocs; local 8452 Elf_Internal_Rela *relocs, *r; local 8550 Elf_Internal_Rela *relocs, *r; local 10010 ppc64_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | cofflink.c | 687 output file. Set the file positions for the relocs. */ 777 finfo.section_info[i].relocs = NULL; 782 /* We now know the size of the relocs, so we can determine the file 808 Because of this problem, we also keep the relocs in 815 finfo.section_info[o->target_index].relocs = bfd_malloc (amt); 819 if (finfo.section_info[o->target_index].relocs == NULL 1012 the symbol indices to use for relocs against them, and we can 1013 finally write out the relocs. */ 1029 irel = finfo.section_info[o->target_index].relocs; 1047 /* In PE COFF, write the count of relocs a 2825 _bfd_coff_generic_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, struct internal_reloc *relocs, struct internal_syment *syms, asection **sections) argument [all...] |
H A D | elf64-alpha.c | 671 /* Skip 12 - 16; deprecated ECOFF relocs. */ 723 /* Skip 20 - 23; deprecated ECOFF relocs. */ 1748 asection *sec, const Elf_Internal_Rela *relocs) 1762 In particular, any relocs in such sections should not affect GOT 1765 relocs, and there's not much point in propagating relocs to shared 1779 relend = relocs + sec->reloc_count; 1780 for (rel = relocs; rel < relend; ++rel) 2625 relocations. Avoid the loop which may want to add RELATIVE relocs 2671 relocations. Avoid the loop which may want to add RELATIVE relocs 1739 elf64_alpha_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 2890 Elf_Internal_Rela *relocs, *relend; member in struct:alpha_relax_info 3922 elf64_alpha_relocate_section_r(bfd *output_bfd ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED, bfd *input_bfd, asection *input_section, bfd_byte *contents ATTRIBUTE_UNUSED, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument 4009 elf64_alpha_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | coff-x86_64.c | 470 PC relative relocs. 516 struct internal_reloc *relocs, 523 return _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,input_section, contents,relocs, syms, sections); 511 coff_pe_amd64_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, struct internal_reloc *relocs, struct internal_syment *syms, asection **sections) argument
|
H A D | elf32-s390.c | 404 /* Handle the large displacement relocs. */ 634 /* The s390 linker needs to keep track of the number of relocs that it 635 decides to copy as dynamic relocs in check_relocs for each symbol. 647 /* Total number of relocs copied for the input section. */ 650 /* Number of pc-relative relocs copied for the input section. */ 660 /* Track dynamic relocs copied for this symbol. */ 962 /* Look through the relocs for a section during the first phase, and 967 elf_s390_check_relocs (abfd, info, sec, relocs) 971 const Elf_Internal_Rela *relocs; 992 rel_end = relocs 1415 elf_s390_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1985 bfd_boolean relocs; local [all...] |
H A D | elf64-s390.c | 428 /* Handle the large displacement relocs. */ 589 /* The s390 linker needs to keep track of the number of relocs that it 590 decides to copy as dynamic relocs in check_relocs for each symbol. 602 /* Total number of relocs copied for the input section. */ 605 /* Number of pc-relative relocs copied for the input section. */ 615 /* Track dynamic relocs copied for this symbol. */ 917 /* Look through the relocs for a section during the first phase, and 922 elf_s390_check_relocs (abfd, info, sec, relocs) 926 const Elf_Internal_Rela *relocs; 947 rel_end = relocs 1383 elf_s390_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1959 bfd_boolean relocs; local [all...] |
H A D | elf32-ppc.c | 45 /* Branch prediction bit for branch taken relocs. */ 750 /* Marker relocs for TLS. */ 1208 /* The remaining relocs are from the Embedded ELF ABI, and are not 1655 /* Handle the R_PPC_ADDR16_HA and R_PPC_REL16_HA relocs. */ 2337 /* The PPC linker needs to keep track of the number of relocs that it 2338 decides to copy as dynamic relocs in check_relocs for each symbol. 2350 /* Total number of relocs copied for the input section. */ 2353 /* Number of pc-relative relocs copied for the input section. */ 2383 /* Of those relocs that might be copied as dynamic relocs, thi 3080 ppc_elf_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 3929 ppc_elf_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 4919 bfd_boolean relocs; local 5776 ppc_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | elf32-i386.c | 76 /* These relocs are a GNU extension. */ 239 /* These relocs are a GNU extension. */ 564 /* The i386 linker needs to keep track of the number of relocs that it 565 decides to copy as dynamic relocs in check_relocs for each symbol. 577 /* Total number of relocs copied for the input section. */ 580 /* Number of pc-relative relocs copied for the input section. */ 590 /* Track dynamic relocs copied for this symbol. */ 924 /* Look through the relocs for a section during the first phase, and 932 const Elf_Internal_Rela *relocs) 950 rel_end = relocs 927 elf_i386_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1315 elf_i386_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1846 bfd_boolean relocs; local 2200 elf_i386_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | elf32-spu.c | 29 /* We use RELA style relocs. Don't define USE_REL. */ 177 /* Apply R_SPU_REL9 and R_SPU_REL9I relocs. */ 894 /* If there aren't any relocs, then there's nothing more to do. */ 907 /* Get the relocs. */ 1017 if (elf_section_data (section)->relocs != internal_relocs) 1044 /* We're done with the internal relocs, free them. */ 1045 if (elf_section_data (section)->relocs != internal_relocs) 1465 /* Assume no relocs on stack adjusing insns. */ 1892 /* Rummage through the relocs for SEC, looking for function calls. 2643 /* Called when not normally emitting relocs, i 2648 spu_elf_count_relocs(asection *sec, Elf_Internal_Rela *relocs) argument 2666 spu_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | elf64-x86-64.c | 162 /* Map BFD relocs to the x86_64 elf relocs. */ 387 /* The x86-64 linker needs to keep track of the number of relocs that 388 it decides to copy as dynamic relocs in check_relocs for each symbol. 401 /* Total number of relocs copied for the input section. */ 404 /* Number of pc-relative relocs copied for the input section. */ 414 /* Track dynamic relocs copied for this symbol. */ 738 /* Look through the relocs for a section during the first phase, and 744 const Elf_Internal_Rela *relocs) 762 rel_end = relocs 741 elf64_x86_64_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1173 elf64_x86_64_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1687 bfd_boolean relocs; local 2044 elf64_x86_64_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | libaout.h | 462 void * relocs; 469 ((s)->used_by_bfd = (void *)&(v)->relocs) 460 void * relocs; member in struct:aout_section_data_struct
|
H A D | libcoff.h | 186 /* The relocs, swapped into COFF internal form. This may be NULL. */ 187 struct internal_reloc *relocs; member in struct:coff_section_tdata 188 /* If this is TRUE, the relocs entry may not be freed. */ 447 /* The relocs to be output. */ 448 struct internal_reloc *relocs; member in struct:coff_link_section_info 498 /* Buffer large enough to hold external relocs of any input section. */ 500 /* Buffer large enough to hold swapped relocs of any input section. */
|
H A D | pe-mips.c | 356 PC relative relocs. 590 struct internal_reloc *relocs, 617 rel = relocs; 585 coff_pe_mips_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, struct internal_reloc *relocs, struct internal_syment *syms, asection **sections) argument
|
H A D | elf-bfd.h | 708 relocs of an object file, just after the symbols for the object 710 function must look through the relocs and do any special handling 713 relocs are always passed as Rela structures; if the section 718 const Elf_Internal_Rela *relocs); 770 we keep to use as a base for relocs and symbols. */ 777 The relocs are always passed as Rela structures; if the section 782 necessary, and (if using Rela relocs and generating a 807 asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, 874 const Elf_Internal_Rela *relocs); 934 /* Emit relocations. Overrides default routine for emitting relocs, 1204 Elf_Internal_Rela *relocs; member in struct:bfd_elf_section_data [all...] |
H A D | elfxx-ia64.c | 44 relocations. Dynamic relocs created for dynamic 45 symbols in an application; REL relocs for locals 51 ld.so. Thus there are no dynamic relocs against these 52 objects. The FPTR relocs for such _are_ passed through 174 unsigned reltext : 1; /* are there relocs against readonly sections? */ 268 const Elf_Internal_Rela *relocs)); 322 Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, 1353 if (elf_section_data (sec)->relocs != internal_relocs) 1358 elf_section_data (sec)->relocs = internal_relocs; 1404 && elf_section_data (sec)->relocs ! [all...] |
H A D | elf32-score.c | 49 /* Number of R_SCORE_ABS32, R_SCORE_REL32 relocs against this symbol. */ 1236 relocation field. It therefore treats relocs against 1237 defined symbols in the same way as relocs against 1841 Elf_Internal_Rela *relocs, 1913 relend = relocs + input_section->reloc_count * bed->s->int_rels_per_ext_rel; 2197 Elf_Internal_Rela *relocs, 2234 rel = relocs; 2235 relend = relocs + input_section->reloc_count; 2404 /* For relocs against symbols from removed linkonce sections, 2426 input_section, contents, rel, relocs, 1835 score_elf_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd, bfd *output_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *rel, Elf_Internal_Rela *relocs, bfd_vma symbol, struct bfd_link_info *info, const char *sym_name ATTRIBUTE_UNUSED, int sym_flags ATTRIBUTE_UNUSED, struct score_elf_link_hash_entry *h, asection **local_sections, bfd_boolean gp_disp_p) argument 2192 _bfd_score_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument 2486 _bfd_score_elf_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument [all...] |
H A D | elfxx-sparc.c | 89 /* For unsupported relocs. */ 457 /* The SPARC linker needs to keep track of the number of relocs that it 458 decides to copy as dynamic relocs in check_relocs for each symbol. 470 /* Total number of relocs copied for the input section. */ 473 /* Number of pc-relative relocs copied for the input section. */ 483 /* Track dynamic relocs copied for this symbol. */ 502 /* TRUE if TLS GD relocs has been seen for this object. */ 1071 /* Look through the relocs for a section during the first phase, and 1077 asection *sec, const Elf_Internal_Rela *relocs) 1103 rel_end = relocs 1074 _bfd_sparc_elf_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 1553 _bfd_sparc_elf_gc_sweep_hook(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 2459 _bfd_sparc_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, Elf_Internal_Rela *relocs, Elf_Internal_Sym *local_syms, asection **local_sections) argument [all...] |
H A D | elf32-arm.c | 2107 /* The ARM linker needs to keep track of the number of relocs that it 2109 it can discard PC relative relocs if it doesn't need them when 2113 /* This structure keeps track of the number of relocs we have copied 2121 /* Number of relocs copied in this section. */ 2123 /* Number of PC-relative relocs copied in this section. */ 2134 /* Number of PC relative relocs copied for this symbol. */ 3022 collection, despite the fact that no relocs refer to this section. */ 3134 /* Rummage around all the relocs and map the glue vectors. */ 3150 /* Load the relocs. */ 3247 && elf_section_data (sec)->relocs ! 6357 elf32_arm_relocate_section(bfd * output_bfd, struct bfd_link_info * info, bfd * input_bfd, asection * input_section, bfd_byte * contents, Elf_Internal_Rela * relocs, Elf_Internal_Sym * local_syms, asection ** local_sections) argument 7400 elf32_arm_gc_sweep_hook(bfd * abfd, struct bfd_link_info * info, asection * sec, const Elf_Internal_Rela * relocs) argument 7526 elf32_arm_check_relocs(bfd *abfd, struct bfd_link_info *info, asection *sec, const Elf_Internal_Rela *relocs) argument 8542 bfd_boolean relocs; local [all...] |
/freebsd-11-stable/contrib/llvm-project/lld/COFF/ |
H A D | Chunks.cpp | 34 // Initialize relocs. 767 if (relocs.empty()) 769 return 12 + 12 * relocs.size(); 774 if (relocs.empty()) 785 for (const RuntimePseudoReloc &rpr : relocs) {
|
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/ |
H A D | ArchHandler.h | 308 static void appendReloc(normalized::Relocations &relocs, uint32_t offset,
|
/freebsd-11-stable/contrib/binutils/binutils/ |
H A D | coffgrok.c | 164 head->sections[i].relocs = 189 struct coff_reloc *r = head->sections[i].relocs + j;
|
/freebsd-11-stable/contrib/binutils/gas/config/ |
H A D | tc-sparc.c | 1913 as_bad (_("Illegal operands: %%%s cannot be used together with other relocs in the insn ()"), 3458 static arelent *relocs[3]; 3462 relocs[0] = reloc = (arelent *) xmalloc (sizeof (arelent)); 3463 relocs[1] = NULL; 3541 set of relocs. */ 3618 relocs[0] = NULL; 3619 return relocs; 3662 relocs[1] = reloc = (arelent *) xmalloc (sizeof (arelent)); 3663 relocs[2] = NULL; 3673 return relocs; 3447 static arelent *relocs[3]; local [all...] |
H A D | obj-coff.h | 390 #define SET_SECTION_RELOCS(sec, relocs, n) \
|
/freebsd-11-stable/sys/dev/ncr/ |
H A D | ncr.c | 2977 int relocs, offset; local 3015 relocs = 2; 3041 relocs = 1; 3050 relocs = 0; 3052 relocs = 1; 3059 relocs = 1; 3063 relocs = 0; 3067 if (relocs) { 3068 while (relocs--) {
|