Home | History | Annotate | Download | only in bfd

Lines Matching full:relocs

232    with identical R_PPC64_RELATIVE relocs, there is really no need to
233 propagate .opd relocs; The dynamic linker should be taught to
811 /* Relocs in the 64-bit PowerPC ELF ABI, not in the 32-bit ABI. */
1279 /* Marker relocs for TLS. */
2464 /* Handle the R_PPC64_ADDR16_HA and similar relocs. */
2791 /* A copy of relocs before they are modified for --emit-relocs. */
2792 Elf_Internal_Rela *relocs;
2798 /* Nonzero if this bfd has small toc/got relocs, ie. that expect
2802 /* Set if toc/got ha relocs detected not using r2, or lo reloc
3682 /* Of those relocs that might be copied as dynamic relocs, this function
3846 /* Total number of relocs copied for the input section. */
3866 /* Track dynamic relocs copied for this symbol. */
3887 corresponding relocs are encountered during check_relocs.
3898 #define TLS_EXPLICIT 32 /* Marks TOC section TLS relocs. */
3963 /* The size of reliplt used by got entry relocs. */
4003 /* Nonzero if this section has any toc or got relocs. */
4652 /* Copy over any dynamic relocs we may have on the indirect sym. */
5004 relocs in .opd, as that would keep all functions. Instead,
5198 /* Look through the relocs for a section during the first phase, and
5204 asection *sec, const Elf_Internal_Rela *relocs)
5219 In particular, any relocs in such sections should not affect GOT
5222 relocs, and there's not much point in propagating relocs to shared
5245 rel_end = relocs + sec->reloc_count;
5246 for (rel = relocs; rel < rel_end; rel++)
5301 if (rel != relocs
5322 /* These special tls relocs tie a call to __tls_get_addr with
5589 if (rel != relocs
5727 /* Don't propagate .opd relocs. */
5750 dynamic library if we manage to avoid copy relocs for the
5805 /* Track dynamic relocs needed for local syms too.
5931 Elf_Internal_Rela *relocs;
5935 /* No relocs implies we are linking a --just-symbols object, or looking
5980 relocs = ppc64_elf_tdata (opd_bfd)->opd.relocs;
5981 if (relocs == NULL)
5982 relocs = _bfd_elf_link_read_relocs (opd_bfd, opd_sec, NULL, NULL, TRUE);
5985 lo = relocs;
6362 asection *sec, const Elf_Internal_Rela *relocs)
6386 relend = relocs + sec->reloc_count;
6387 for (rel = relocs; rel < relend; rel++)
6939 /* We don't have any relocs. */
6957 /* Return true if we have dynamic relocs that apply to read-only sections. */
7035 dynamic relocs if the reference is weak, and the dynamic
7036 relocs will not cause text relocation. */
7043 /* If making a plt entry, then we don't need copy relocs. */
7080 /* If we didn't find any dynamic relocs in read-only sections, then
7081 we'll be keeping the dynamic relocs and avoiding the copy reloc. */
7535 /* elf_gc_sweep may have already removed all dyn relocs associated
7636 /* Look through the section relocs. */
7649 /* First run through the relocs to check they are sane, and to
7798 if (elf_section_data (sec)->relocs != relstart)
7806 elf_section_data (sec)->relocs = relstart;
7925 remove redundant relocs. */
7942 elf_bfd_final_link if we are emitting relocs. */
7947 else if (elf_section_data (sec)->relocs != relstart)
8127 /* Run through all the TLS relocs looking for optimization
8150 /* Make two passes over the relocs. On the first pass, mark toc
8151 relocs, and check that tls relocs
8200 if (elf_section_data (sec)->relocs != relstart)
8225 /* Symbols referenced by TLS relocs must be of type
8250 without marker relocs, then check that each
8254 relocs, don't do any tls optimization. */
8281 /* These relocs should never be against a symbol
8339 tls_get_addr for the TOC16 relocs. */
8529 we'll lose one or two dyn relocs. */
8546 if (elf_section_data (sec)->relocs != relstart)
8647 /* Examine all relocs referencing .toc sections in order to remove
8699 /* Run through the relocs to see which toc entries might be
8757 if (elf_section_data (sec)->relocs != relstart)
8774 /* Read toc relocs. */
8856 && elf_section_data (sec)->relocs != relstart)
8859 && elf_section_data (toc)->relocs != toc_relocs)
9037 /* Do all the relocs again, to catch reference
9046 if (elf_section_data (sec)->relocs != relstart)
9105 /* Adjust addends for relocs against the toc section sym,
9193 elf_section_data (sec)->relocs = relstart;
9201 elf_section_data (sec)->relocs = relstart;
9204 if (elf_section_data (sec)->relocs != relstart)
9256 /* Remove unused toc relocs, and adjust those we keep. */
9277 elf_section_data (toc)->relocs = toc_relocs;
9285 && elf_section_data (toc)->relocs != toc_relocs)
9368 dynamic relocs. */
9528 dynamic pc-relative relocs against symbols which turn out to be
9530 space for relocs that have become local due to symbol visibility
9535 /* Relocs that use pc_count are those that appear on a call insn,
9536 or certain REL relocs (see must_be_dyn_reloc) that can be
9556 /* Also discard relocs on undefined weak syms with non-default
9581 /* For the non-shared case, discard space for relocs against
9582 symbols which turn out to need copy relocs or are not
9598 relocs. */
9664 /* Set DF_TEXTREL if we find any dynamic relocs that apply to
9692 bfd_boolean relocs;
9718 relocs. */
9744 the relocs too. */
9831 sym dynamic relocs. */
9877 relocs = FALSE;
9906 relocs = TRUE;
9909 to copy relocs into the output file. */
9976 relocs = TRUE;
10026 if (relocs)
10033 /* If any dynamic relocs apply to a read-only section,
10444 Elf_Internal_Rela *relocs;
10448 relocs = elfsec_data->relocs;
10449 if (relocs == NULL)
10452 relsize = sec->reloc_count * sizeof (*relocs);
10453 relocs = bfd_alloc (sec->owner, relsize);
10454 if (relocs == NULL)
10456 elfsec_data->relocs = relocs;
10466 relocs += sec->reloc_count;
10468 return relocs;
11670 if (elf_section_data (isec)->relocs != relstart)
11750 have toc relocs. */
12040 /* If there aren't any relocs, then there's nothing more
12055 /* Get the relocs. */
12274 if (elf_section_data (section)->relocs == NULL)
12304 /* We're done with the internal relocs, free them. */
12305 if (elf_section_data (section)->relocs != internal_relocs)
12951 The relocs are always passed as Rela structures; if the section
12956 necessary, and (if using Rela relocs and generating a
12983 Elf_Internal_Rela *relocs,
13022 rel = relocs;
13023 relend = relocs + input_section->reloc_count;
13055 /* For old style R_PPC64_TOC relocs with a zero symbol, use the
13059 && rel != relocs
13091 that ld -r and ld --emit-relocs output is correct.
13158 /* TLS optimizations. Replace instruction sequences and relocs
13160 RELOCS so that --emit-relocs will output something sensible
13191 /* Check that tls relocs are used with tls syms, and non-tls
13192 relocs are used with non-tls syms. */
14039 /* Generate relocs for the dynamic linker, except in
14194 /* TOC16 relocs. We want the offset relative to the TOC base,
14260 /* The TPREL16 relocs shouldn't really be used in shared
14426 for relocs. This make all RELATIVE relocs have
14513 /* Use *r_offset == r_addend for R_PPC64_ADDR64 relocs
14518 /* Adjust pc_relative relocs to have zero in *r_offset. */
14532 /* We shouldn't ever see these dynamic relocs in relocatable
14570 /* These relocs would only be useful if building up an
14574 offset like this or even with the HA relocs, means that
14688 _DS relocs bloats all reloc switches in this file. It
14689 doesn't seem to make much sense to use any of these relocs
14707 /* Dynamic relocs are not propagated for SEC_DEBUGGING sections
14811 file rather than the input. Save a copy of the relocs for
14818 BFD_ASSERT (ppc64_elf_tdata (input_bfd)->opd.relocs == NULL);
14819 ppc64_elf_tdata (input_bfd)->opd.relocs = rel;
14822 memcpy (rel, relocs, amt);
14965 /* Used to decide how to sort relocs in an optimal manner for the
15075 /* Don't count procedure linkage table relocs in the
15119 /* brlt is SEC_LINKER_CREATED, so we need to write out relocs for
15126 elf_section_data (htab->brlt)->relocs,
15135 elf_section_data (htab->glink)->relocs,