Lines Matching defs:to

18    along with this program; if not, write to the
56 /* Mask to set RA in memory instructions. */
58 /* Value to shift register by to insert RA. */
311 /* An absolute 16 bit branch, for which bit 10 should be set to
312 indicate that the branch is expected to be taken. The lower two
328 /* An absolute 16 bit branch, for which bit 10 should be set to
329 indicate that the branch is not expected to be taken. The lower
375 /* A relative 16 bit branch. Bit 10 should be set to indicate that
376 the branch is expected to be taken. The lower two bits must be
392 /* A relative 16 bit branch. Bit 10 should be set to indicate that
393 the branch is not expected to be taken. The lower two bits must
409 /* Like R_PPC_ADDR16, but referring to the GOT table entry for the
425 /* Like R_PPC_ADDR16_LO, but referring to the GOT table entry for
441 /* Like R_PPC_ADDR16_HI, but referring to the GOT table entry for
457 /* Like R_PPC_ADDR16_HA, but referring to the GOT table entry for
473 /* Like R_PPC_REL24, but referring to the procedure linkage table
493 run has to have the data at some particular address. */
540 longword is set to the load address of the object, plus the
618 /* 32-bit relocation to the symbol's procedure linkage table.
634 /* 32-bit PC relative relocation to the symbol's procedure linkage table.
650 /* Like R_PPC_ADDR16_LO, but referring to the PLT table entry for
666 /* Like R_PPC_ADDR16_HI, but referring to the PLT table entry for
682 /* Like R_PPC_ADDR16_HA, but referring to the PLT table entry for
698 /* A sign-extended 16 bit value relative to _SDA_BASE_, for use with
986 /* Allocates two contiguous entries in the GOT to hold a tls_index structure,
988 to the first entry. */
1048 /* Allocates two contiguous entries in the GOT to hold a tls_index structure,
1049 with values (sym+add)@dtpmod and zero, and computes the offset to the
1111 the offset to the entry. */
1172 offset to the entry. */
1312 /* 16 bit value resulting from allocating a 4 byte word to hold an
1329 /* 16 bit value resulting from allocating a 4 byte word to hold an
1346 /* A sign-extended 16 bit value relative to _SDA2_BASE_, for use with
1538 /* This reloc is like R_PPC_EMB_SDA21 but only applies to e_add16i
1540 the e_add16i to an e_li instruction. */
1570 /* The 16 LSBS relative to _SDA_BASE_ in split16a format. */
1585 /* The 16 LSBS relative to _SDA_BASE_ in split16d format. */
1600 /* Bits 16-31 relative to _SDA_BASE_ in split16a format. */
1615 /* Bits 16-31 relative to _SDA_BASE_ in split16d format. */
1630 /* Bits 16-31 (HA) relative to _SDA_BASE split16a format. */
1645 /* Bits 16-31 (HA) relative to _SDA_BASE split16d format. */
1765 /* GNU extension to record C++ vtable hierarchy. */
1780 /* GNU extension to record C++ vtable member usage. */
1795 /* Phony reloc to handle AIX style TOC entries. */
1812 ABI-defined, thus we choose to use char arrays here in order to
1838 /* Helper function to copy an elf_internal_linux_prpsinfo in host
1839 endian to an elf_external_ppc_linux_prpsinfo32 in target endian. */
1844 struct elf_external_ppc_linux_prpsinfo32 *to)
1846 bfd_put_8 (obfd, from->pr_state, &to->pr_state);
1847 bfd_put_8 (obfd, from->pr_sname, &to->pr_sname);
1848 bfd_put_8 (obfd, from->pr_zomb, &to->pr_zomb);
1849 bfd_put_8 (obfd, from->pr_nice, &to->pr_nice);
1850 bfd_put_32 (obfd, from->pr_flag, to->pr_flag);
1851 bfd_put_32 (obfd, from->pr_uid, to->pr_uid);
1852 bfd_put_32 (obfd, from->pr_gid, to->pr_gid);
1853 bfd_put_32 (obfd, from->pr_pid, to->pr_pid);
1854 bfd_put_32 (obfd, from->pr_ppid, to->pr_ppid);
1855 bfd_put_32 (obfd, from->pr_pgrp, to->pr_pgrp);
1856 bfd_put_32 (obfd, from->pr_sid, to->pr_sid);
1857 strncpy (to->pr_fname, from->pr_fname, sizeof (to->pr_fname));
1858 strncpy (to->pr_psargs, from->pr_psargs, sizeof (to->pr_psargs));
2161 /* Pointer to the bfd section. */
2174 symbol lists, and provides allows us to return different pointers,
2193 /* A mapping from local symbols to offsets into the various linker
2197 /* Flags used to auto-detect plt type. */
2221 /* When defaulting arch/mach, decode apuinfo to find a better match. */
2322 /* Function to set whether a module needs the -mrelocatable bit set. */
2522 need to bump up the number of section headers. */
2551 LMA and assigned to segments. All that is left to do is to ensure
2632 that the linker doesn't crater when trying to make more than
2757 the APUinfo values that will need to be emitted. */
2805 error_message = _("unable to read in %s section from %B");
2809 /* Verify the contents of the header. Note - we have to
2810 extract the values this way in order to allow for a
2847 error_message = _("warning: unable to set size of %s section in %B");
2897 (_("failed to allocate space for new APUinfo section."));
2916 _bfd_error_handler (_("failed to compute new APUinfo section."));
2919 _bfd_error_handler (_("failed to install new APUinfo section."));
2983 /* Call common code to handle old-style executable PLTs. */
3051 /* The first glink stub may either branch to the resolver ... */
3072 there is no way to associate stubs with their plt entries short
3167 /* The following functions are specific to the ELF linker, while
3181 This field stores the offset into .got2 used to initialise the
3230 /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
3232 section, and instead use a dynamic relocation to point into the
3236 /* Used to track dynamic relocations for local symbols. */
3258 specific backend uses this field to map the field into the offset
3268 tls_optimize clears TLS_GD .. TLS_TPREL when optimizing to
3279 /* Nonzero if we have seen a small data relocation referring to this
3299 /* Short-cuts to get to dynamic linker sections. */
3310 /* Shortcut to __tls_get_addr. */
3322 /* Offset of branch table to PltResolve function in glink. */
3330 /* The type of PLT we have chosen to use. */
3347 /* Rename some of the generic section flags to better document how they
3353 /* Nonzero if this section has a call to __tls_get_addr. */
3555 /* We have to create .dynsbss and .rela.sbss here so that they get mapped
3556 to output sections (just like _bfd_elf_create_dynamic_sections has
3557 to create .dynbss and .rela.bss). */
3623 /* If called to transfer flags for a weakdef during processing
3645 /* Add reloc counts against the indirect sym to the direct sym
3669 /* If we were called to copy over info for a weak sym, that's all.
3673 code in ppc_elf_adjust_dynamic_symbol needs to check for
3679 /* Copy over the GOT refcount entries that we may have already seen to
3726 file. We use it to put .comm items in .sbss, and not .bss. */
3742 /* Common symbols less than or equal to -G nn bytes are automatically
3789 /* Allocate a pointer to live in a linker created section. */
3822 /* Allocation of a pointer to a local symbol. */
3825 /* Allocate a table to hold the local symbols if first time. */
3999 and PLT reference counting (ie. we don't allow them to create GOT
4000 or PLT entries), there's no possibility or desire to optimize TLS
4001 relocs, and there's not much point in propagating relocs to shared
4056 /* If a relocation refers to _GLOBAL_OFFSET_TABLE_, create the .got.
4127 /* These special tls relocs tie a call to __tls_get_addr with
4186 /* We may also need a plt entry if the symbol turns out to be
4320 /* It does not make sense to have a procedure linkage
4347 /* The following relocations don't need to propagate the
4397 /* This refers only to functions defined in the shared library. */
4451 the start of a function, which assembles to a REL32
4452 reference to .got2. If we detect one of these, then
4484 /* We may need a plt entry if the symbol turns out to be
4522 /* We may need a plt entry if the symbol turns out to be
4533 against a local symbol, then we need to copy the reloc
4535 -Bsymbolic, we do not need to copy a reloc against a
4549 may need to keep relocations for symbols satisfied by a
4550 dynamic library if we manage to avoid copy relocs for the
4566 "ppc_elf_check_relocs needs to "
4610 We really need local syms available to do this
4766 /* For now, allow generic to transition to AltiVec or SPE
4824 /* Merge backend specific data from an object file to the output
4862 to be linked with either. */
4978 /* Choose which PLT scheme to use, and set .plt flags appropriately.
5009 r30 to be set up. */
5041 info->callbacks->einfo (_("%P: bss-plt forced due to %B\n"),
5299 make __tls_get_addr point to __tls_get_addr_opt. */
5395 optimization. On the second pass twiddle tls_mask flags to
5449 that conceivably belongs to the __tls_get_addr arg
5479 that turns out to be the case. */
5542 could just mark this symbol to exclude it
5543 from tls optimization but it's safer to skip
5607 /* We managed to get rid of a got entry. */
5633 /* Return true if we have dynamic relocs that apply to read-only sections. */
5654 dynamic object, but we're not including those sections. We have to
5655 change the definition to something the rest of the link can
5705 3. We know for certain that a call to this symbol
5706 will go to this object, or will remain undefined. */
5714 doesn't require us to define the function symbol in the
5733 relocations against this symbol to the PLT entry. Allow
5751 processor independent code will have arranged for us to see the
5764 /* This is a reference to a symbol defined by a dynamic object which
5768 only references to the symbol are via the global offset table.
5777 /* If there are no references to this symbol that do not use the
5778 GOT, we don't need to generate a copy reloc. */
5787 definition for the variable. Editing to PIC, or text relocations
5788 are preferable to an incorrect program. */
5828 from the dynamic object to this symbol will go through the global
5829 offset table. The dynamic linker will use the .dynsym entry to
5831 both the dynamic object and the regular object will refer to the
5845 /* We must generate a R_PPC_COPY reloc to tell the dynamic linker to
5847 runtime process image. We need to remember the offset into the
5848 .rela.bss section we are going to use. */
5868 /* Generate a symbol to mark plt call stubs. For non-PIC code the sym is
6055 library, then set the symbol to this location
6056 in the .plt. This is to avoid text
6057 relocations, and is required to make
6081 /* We also need to make an entry in the .rela.plt section. */
6212 dynamic pc-relative relocs against symbols which turn out to be
6214 space for relocs that have become local due to symbol visibility
6221 generated via assembly. We want calls to protected symbols to
6222 resolve directly to the function rather than going via the plt.
6223 If people want function pointer comparisons to work as expected
6282 symbols which turn out to need copy relocs or are not
6324 /* Set DF_TEXTREL if we find any dynamic relocs that apply to
6377 /* Set the contents of the .interp section to the interpreter. */
6420 it is a copy of a linkonce section or due to
6493 /* Allocate space for calls to local STT_GNU_IFUNC syms in .iplt. */
6548 for old plt/got the got size will be 0 to 32764 (not allocated),
6549 or 32780 to 65536 (header allocated). For new plt/got, the
6550 corresponding ranges are 0 to 32768 and 32780 to 65536. */
6588 /* Pad out to align the start of PLTresolve. */
6660 /* We'd like to strip these sections if they aren't needed, but if
6662 It's too late to tell BFD to get rid of the symbols. */
6693 to copy relocs into the output file. */
6706 output file. This is mostly to handle .rela.bss and
6709 before the linker maps input sections to output
6712 function which decides whether anything needs to go
6729 /* Add some entries to the .dynamic section. We fill in the
6773 /* If any dynamic relocs apply to a read-only section, then we
6808 /* Offset to .glink. Set later. */
6853 /* Arrange to have _SDA_BASE_ or _SDA2_BASE_ stripped from the output
6911 used for some functions that are allowed to break the ABI). */
6975 /* No need to do anything with non-alloc or non-code sections. */
7076 /* Get the value of the symbol referred to by the reloc. */
7134 /* If this branch is to __tls_get_addr then we may later
7255 /* There probably isn't any reason to handle symbols in
7263 adjusted, so all references to such symbols need to be
7269 sections to a relocation against the section symbol when
7272 offset passed to _bfd_merged_section_offset, since the
7274 other hand, an access to "sym+addend" where "sym" is not
7276 access is presumed to be an offset from "sym"; The
7303 /* If the branch is in range, no need to do anything. */
7319 /* Look for an existing fixup to this address. */
7331 /* Oh dear, we can't reach a trampoline. Don't try to add
7395 /* Fix up the existing branch to hit the trampoline. */
7443 /* Keep space aligned, to ensure the patch code itself does
7547 /* What to do when ld finds relocations against symbols defined in
7702 REG is non-zero only match an insn with RB or RA equal to REG. */
7778 insn -= 2 >> 26; /* convert to ori,oris */
7803 to handle the relocations for a section.
7814 This function does not have to worry about setting the reloc
7817 LOCAL_SYMS is a pointer to the swapped in local symbols.
7820 corresponding to the st_shndx field of each local symbol.
7827 going to be the section symbol corresponding to the output
7874 /* We have to handle relocations in vxworks .tls_vars sections
7948 non-debug to preserve relocs in .eh_frame which the
7949 eh_frame editing code expects to be present. */
8085 /* If not using the newer R_PPC_TLSGD/LD to mark
8095 /* We read the low GOT_TLS insn because we need to keep
8097 the usual r3, and moved to r3 before the call by
8153 in order to get h, sym, sec etc. right. */
8262 variable defined in a shared library to PIC. */
8298 /* Convert lis to lwz, loading address from GOT. */
8316 /* Continue on as if we had a got reloc, to output
8350 /* Arrange to apply the reloc addend, if any. */
8403 /* Uh oh, we are going to create a pic glink stub
8409 whether r30 is equal to _GLOBAL_OFFSET_TABLE_ or
8522 /* Relocation is to the entry for this symbol in the global
8545 locally, or the symbol was forced to be local
8564 least significant bit to record whether we have already
8742 got at entry m+n bears little relation to the entry m. */
8755 /* It makes no sense to point a local relocation
8771 seriously, calls to ifuncs must go through a plt call
8772 stub, and for pic the plt call stubs uses r30 to
8778 info->callbacks->einfo (_("%X%P: %H: @local call to ifunc %s\n"),
8792 /* Relocations that may need to be propagated if this is a shared
8803 resolve to zero. This is really just a tweak, since
8804 code using weak externs ought to check that they are
8863 /* If these relocations are not to a named symbol, they can be
8864 handled right here, no need to bother the dynamic linker. */
8907 fprintf (stderr, "ppc_elf_relocate_section needs to "
8914 are copied into the output file to be resolved at run
8957 relocations is going to complain about
8963 non-executable to apply text relocations.
8964 So we'll segfault when trying to run the
8965 indirection function to resolve the reloc. */
8988 proper to subtract the symbol's value,
9111 relocs to describe this relocation. */
9152 /* Handle the TOC16 reloc. We want to use the offset within the .got
9186 /* Relocation is to the entry for this symbol in the
9202 Don't apply it to the relocation field. */
9384 /* Top 4 bits of value to 17..20. */
9386 /* Next 5 bits of the value to 11..15. */
9388 /* And the final 11 bits of the value to bits 21 to 31. */
9568 alone (it will be set to zero elsewhere in the link). */
9604 /* The 32-bit ABI lacks proper relocations to deal with
9605 certain 64-bit instructions. Prevent damage to bits
9722 on a branch to zero when foo is undefined. */
9756 /* It is too late to remove an empty reloc section. Leave
9809 branch to a patch area. Put the insn there followed by a
9810 branch back to the next page. Complicated a little by
9811 needing to handle moved conditional branches, and by not
9812 wanting to touch data-in-text. */
9864 The problem occurs due to prefetch across a page boundary
9871 3) Branch Conditional to Link Register: bclr, bclrl,
9887 The bctr is not predicted taken due to ctr not being
9890 fail to be flushed, then they will be executed after the
9925 reloc r_offset so that the reloc applies to the moved
10180 /* Fill in the GOT entry corresponding to this PLT slot with
10216 /* Provide a relocation for the GOT entry corresponding to this
10230 by the ABI. Instead, the offset is set to the address of
10251 /* We don't need to fill in the .plt. The ppc dynamic
10294 matters (this is a clue for the dynamic linker, to
10297 to zero. */
10313 executable to the glink entry. This is to avoid
10317 to keep the original value around for the ifunc
10883 /* Offset to .glink. */