Lines Matching refs:relocs

198    with identical R_PPC64_RELATIVE relocs, there is really no need to
199 propagate .opd relocs; The dynamic linker should be taught to
2156 /* Handle the R_PPC64_ADDR16_HA and similar relocs. */
2414 /* A copy of relocs before they are modified for --emit-relocs. */
3131 /* The linker needs to keep track of the number of relocs that it
3132 decides to copy as dynamic relocs in check_relocs for each symbol.
3144 /* Total number of relocs copied for the input section. */
3147 /* Number of pc-relative relocs copied for the input section. */
3194 /* Of those relocs that might be copied as dynamic relocs, this macro
3332 /* Track dynamic relocs copied for this symbol. */
3353 corresponding relocs are encountered during check_relocs.
3364 #define TLS_EXPLICIT 32 /* Marks TOC section TLS relocs. */
3978 /* Copy over any dynamic relocs we may have on the indirect sym. */
4385 /* Look through the relocs for a section during the first phase, and
4391 asection *sec, const Elf_Internal_Rela *relocs)
4405 In particular, any relocs in such sections should not affect GOT
4408 relocs, and there's not much point in propagating relocs to shared
4427 relocs in .opd, as that would keep all functions. Instead,
4453 rel_end = relocs + sec->reloc_count;
4454 for (rel = relocs; rel < rel_end; rel++)
4693 if (rel != relocs
4806 /* Don't propagate .opd relocs. */
4829 dynamic library if we manage to avoid copy relocs for the
4899 /* Track dynamic relocs needed for local syms too.
4952 Elf_Internal_Rela *relocs;
4956 /* No relocs implies we are linking a --just-symbols object. */
4982 relocs = ppc64_elf_tdata (opd_bfd)->opd_relocs;
4983 if (relocs == NULL)
4984 relocs = _bfd_elf_link_read_relocs (opd_bfd, opd_sec, NULL, NULL, TRUE);
4987 lo = relocs;
5249 asection *sec, const Elf_Internal_Rela *relocs)
5267 relend = relocs + sec->reloc_count;
5268 for (rel = relocs; rel < relend; rel++)
5775 /* We don't have any relocs. */
5872 /* If we didn't find any dynamic relocs in read-only sections, then
5873 we'll be keeping the dynamic relocs and avoiding the copy reloc. */
6296 /* elf_gc_sweep may have already removed all dyn relocs associated
6379 /* Look through the section relocs. */
6393 /* First run through the relocs to check they are sane, and to
6532 if (elf_section_data (sec)->relocs != relstart)
6540 elf_section_data (sec)->relocs = relstart;
6660 remove redundant relocs. */
6677 elf_bfd_final_link if we are emitting relocs. */
6683 else if (elf_section_data (sec)->relocs != relstart)
6776 /* Run through all the TLS relocs looking for optimization
6839 if (elf_section_data (sec)->relocs != relstart)
6858 /* Symbols referenced by TLS relocs must be of type
6882 /* These relocs should never be against a symbol
6982 tls_get_addr for the TOC16 relocs. */
7080 we'll lose one or two dyn relocs. */
7097 if (elf_section_data (sec)->relocs != relstart)
7170 /* Examine all relocs referencing .toc sections in order to remove
7218 /* Run through the relocs to see which toc entries might be
7276 if (elf_section_data (sec)->relocs != relstart)
7292 && elf_section_data (sec)->relocs != relstart)
7377 /* Do all the relocs again, to catch reference
7444 /* Read toc relocs. */
7450 /* Remove unused toc relocs, and adjust those we keep. */
7470 /* Adjust addends for relocs against the toc section sym. */
7574 dynamic relocs. */
7712 dynamic pc-relative relocs against symbols which turn out to be
7714 space for relocs that have become local due to symbol visibility
7720 or certain REL relocs (see MUST_BE_DYN_RELOC) that can be
7740 /* Also discard relocs on undefined weak syms with non-default
7760 /* For the non-shared case, discard space for relocs against
7761 symbols which turn out to need copy relocs or are not
7778 relocs. */
7798 /* Find any dynamic relocs that apply to read-only sections. */
7836 bfd_boolean relocs;
7858 relocs. */
7897 the relocs too. */
7960 sym dynamic relocs. */
7965 relocs = FALSE;
7987 relocs = TRUE;
7990 to copy relocs into the output file. */
8057 relocs = TRUE;
8096 if (relocs)
8103 /* If any dynamic relocs apply to a read-only section,
8281 Elf_Internal_Rela *relocs, *r;
8285 relocs = elfsec_data->relocs;
8286 if (relocs == NULL)
8289 relsize = stub_entry->stub_sec->reloc_count * sizeof (*relocs);
8290 relocs = bfd_alloc (htab->stub_bfd, relsize);
8291 if (relocs == NULL)
8293 elfsec_data->relocs = relocs;
8298 r = relocs + stub_entry->stub_sec->reloc_count;
8379 Elf_Internal_Rela *relocs, *r;
8383 relocs = elfsec_data->relocs;
8384 if (relocs == NULL)
8387 relsize = htab->brlt->reloc_count * sizeof (*relocs);
8388 relocs = bfd_alloc (htab->brlt->owner, relsize);
8389 if (relocs == NULL)
8391 elfsec_data->relocs = relocs;
8396 r = relocs + htab->brlt->reloc_count;
8964 if (elf_section_data (isec)->relocs != relstart)
8996 the correct TOC value for R_PPC64_TOC relocs that don't have or
9186 /* If there aren't any relocs, then there's nothing more
9201 /* Get the relocs. */
9396 if (elf_section_data (section)->relocs == NULL)
9416 /* We're done with the internal relocs, free them. */
9417 if (elf_section_data (section)->relocs != internal_relocs)
9764 The relocs are always passed as Rela structures; if the section
9769 necessary, and (if using Rela relocs and generating a
9796 Elf_Internal_Rela *relocs,
9831 rel = relocs;
9832 relend = relocs + input_section->reloc_count;
9858 /* For old style R_PPC64_TOC relocs with a zero symbol, use the
9862 && rel != relocs
9895 that ld -r and ld --emit-relocs output is correct.
9918 /* For relocs against symbols from removed linkonce sections,
9931 /* TLS optimizations. Replace instruction sequences and relocs
9933 RELOCS so that --emit-relocs will output something sensible
9962 /* Check that tls relocs are used with tls syms, and non-tls
9963 relocs are used with non-tls syms. */
10610 /* Generate relocs for the dynamic linker, except in
10752 /* TOC16 relocs. We want the offset relative to the TOC base,
10794 /* The TPREL16 relocs shouldn't really be used in shared
10938 for relocs. This make all RELATIVE relocs have
11008 /* Use *r_offset == r_addend for R_PPC64_ADDR64 relocs
11013 /* Adjust pc_relative relocs to have zero in *r_offset. */
11026 /* We shouldn't ever see these dynamic relocs in relocatable
11115 _DS relocs bloats all reloc switches in this file. It
11116 doesn't seem to make much sense to use any of these relocs
11134 /* Dynamic relocs are not propagated for SEC_DEBUGGING sections
11204 file rather than the input. Save a copy of the relocs for
11215 memcpy (rel, relocs, amt);
11322 /* Used to decide how to sort relocs in an optimal manner for the
11418 /* Don't count procedure linkage table relocs in the
11462 /* brlt is SEC_LINKER_CREATED, so we need to write out relocs for
11469 elf_section_data (htab->brlt)->relocs,