Lines Matching defs:to

17    along with this program; if not, write to the Free Software
57 /* GNU extension to record C++ vtable hierarchy. */
71 /* GNU extension to record C++ vtable member usage. */
489 the SVR4 ABI m68k supplement to see how this works. */
497 0, 0, 0, 0 /* pad out to 20 bytes. */
598 0, 0, 0, 0, /* pad out to 24 bytes. */
621 /* The m68k linker needs to keep track of the number of relocs that it
622 decides to copy in check_relocs for each symbol. This is so that it
652 /* Key to got_entries. */
657 to traverse all GOT entries for a particular symbol.
680 and R_68K_GOT32O when allocating offsets, but they are considered to be
699 /* Number of times this entry is referenced. It is used to
707 to GOT pointer one should substract got->offset from this value. */
710 /* Pointer to the next GOT entry for this global symbol.
721 This is used to avoid enumerating many relocations in comparisons,
731 to distinguish between the two, we use explicitly compare against
788 /* Return number of GOT entries we need to allocate in GOT for
849 This is only used to properly calculate size of .rela.got section;
853 /* Offset of this GOT relative to beginning of .got section. */
872 /* Hashtable mapping each BFD to its GOT. If a BFD doesn't have an entry
879 /* Next symndx to assign a global symbol.
898 Set to TRUE when GOT negative offsets or multi-GOT is enabled. */
901 /* Switch controlling use of negative offsets to double the size of GOTs. */
917 /* Shortcut to multi-GOT data. */
1123 /* Merge backend specific data from an object file to the output
1281 for it. If a single BFD appears to require too many GOT slots with
1283 to user.
1289 to merge some of the GOTs to share an offset space. Ideally [and in most
1296 local GOTs to the new 'big' one. We do that by constructing an
1298 GOT lacks. Then we check if there is room in the big GOT to accomodate
1299 all the entries from diff. On success we add those entries to the big
1306 to the outside world.
1308 After that we get to elf_m68k_relocate_section. There we
1310 relocations to refer to appropriate [assigned to current input_bfd]
1324 When counting relocations we have to include the count of the smaller
1326 to correctly detect overflow.
1328 Sorting the GOT: In each GOT starting offsets are assigned to
1333 negative offsets. As we assign entries with GOT offsets relative to
1339 by loader. These entries happen to be placed to .got.plt section,
1345 to most functions), so we don't need to care to free them. At the
1457 and one extra R_32 slots to simplify handling of 2-slot entries during
1534 /* We didn't find the entry and we're asked to create a new one. */
1564 Return the value to which ENTRY's type should be set. */
1603 /* Relocations are ordered from bigger got offset size to lesser,
1621 /* Decrese counter of slots with offset size corresponding to TYPE
1631 /* Add new or update existing entry to GOT.
1823 /* Context where to allocate memory. */
1830 /* Process a single entry from the small GOT to see if it should be added
1860 /* We didn't find the entry. Add entry1 to DIFF. */
1890 /* Return TRUE if SMALL GOT can be added to BIG GOT without overflowing it.
1892 in BIG GOT to accumulate information from SMALL.
1946 struct elf_m68k_got_entry *to;
1951 to = elf_m68k_get_got_entry (arg->big, &from->key_, FIND_OR_CREATE,
1953 if (to == NULL)
1959 BFD_ASSERT (to->u.s1.refcount == 0);
1960 /* All we need to merge is TYPE. */
1961 to->key_.type = from->key_.type;
1966 /* Merge data from DIFF to BIG. INFO is context where memory should be
2019 /* Mapping from global symndx to global symbols.
2020 This is used to build lists of got entries for global symbols. */
2050 /* Check if we should switch to negative range of the offsets. */
2054 /* Verify that this is the only switch to negative range for
2070 /* Assign offset to entry. */
2105 SYMNDX2H is mapping from global symbol indices to actual
2123 /* We set entry offsets relative to the .got section (and not the
2125 finish_dynamic_symbol without needing to know the GOT which they come
2179 /* Make sure that if we try to switch to negative offsets in
2205 /* The GOT we are adding entries to. Aka big got. */
2208 /* Offset to assign the next CURRENT_GOT. */
2215 This is used to calculate size of the .got and .rela.got sections. */
2220 This is used to calculate size of the .rela.got section. */
2226 /* Mapping from global symndx to global symbols.
2227 This is used to build lists of got entries for global symbols. */
2245 /* If we are generating a shared object, we need to
2259 /* Process a single BFD2GOT entry and either merge GOT to CURRENT_GOT
2289 /* Offset set to 0 in the diff_ indicates an error. */
2298 /* Schedule to finish up current_got and start new one. */
2303 we'll fail in relocate_section due to truncated relocations.
2311 /* Create empty current_got to put subsequent GOTs to. */
2342 /* Schedule to start a new current_got. */
2360 /* Helper function to build symndx2h mapping. */
2384 /* Merge GOTs of some BFDs, assign offsets to GOT entries and build
2460 to hashtable slot, thus allowing removal of entry via
2480 /* Remove entry pointed to by ENTRY_PTR from GOT. */
2505 /* Copy any information related to dynamic linking from a pre-existing
2506 symbol to a newly created symbol. Also called to copy flags and
2507 other back-end info to a weakdef, in which case the symbol is not
2659 /* Add entry to got. */
2688 don't need to generate a procedure linkage table entry
2707 /* It does not make sense to have this relocation for a
2708 local symbol. FIXME: does it? How to handle it if
2730 symbol, we need to copy the reloc into the shared library.
2749 it turns out to be a function defined by a dynamic
2759 /* We don't need to handle relocs into sections not going into
2767 turns out to be a function defined by a dynamic object. */
2775 /* If we are creating a shared library, we need to copy the
2805 case, the symbol is forced to be local. Note that this
2807 hash table, which means that h is really a pointer to an
3052 and the input sections have been assigned to output sections.
3053 It's a convenient place to determine the PLT style. */
3058 /* Bind input BFDs to GOTs and calculate sizes of .got and .rela.got
3069 dynamic object, but we're not including those sections. We have to
3070 change the definition to something the rest of the link can
3108 file, but the symbol was never referred to by a dynamic
3110 such a case, we don't actually need to build a procedure
3134 not generating a shared library, then set the symbol to this
3135 location in the .plt. This is required to make function
3150 /* We also need to make an entry in the .got.plt section, which
3156 /* We also need to make an entry in the .rela.plt section. */
3169 processor independent code will have arranged for us to see the
3180 /* This is a reference to a symbol defined by a dynamic object which
3184 only references to the symbol are via the global offset table.
3190 /* If there are no references to this symbol that do not use the
3191 GOT, we don't need to generate a copy reloc. */
3199 from the dynamic object to this symbol will go through the global
3200 offset table. The dynamic linker will use the .dynsym entry to
3202 both the dynamic object and the regular object will refer to the
3208 /* We must generate a R_68K_COPY reloc to tell the dynamic linker to
3210 runtime process image. We need to remember the offset into the
3211 .rela.bss section we are going to use. */
3241 /* Set the contents of the .interp section to the interpreter. */
3255 which will cause it to get stripped from the output file
3262 /* If this is a -Bsymbolic shared link, then we need to discard all
3265 against symbols that have become local due to visibility changes.
3285 /* It's OK to base decisions on the section name, because none
3301 to copy relocs into the output file. */
3315 output file. This is mostly to handle .rela.bss and
3318 before the linker maps input sections to output
3321 function which decides whether anything needs to go
3331 /* FIXME: This should be a call to bfd_alloc not bfd_zalloc.
3334 order to prevent writing out garbage, we initialise the section's
3335 contents to zero. */
3343 /* Add some entries to the .dynamic section. We fill in the
3387 space allocated to copy PC relative relocs against symbols which
3389 discards space for pc-relative relocs that have become local due to
3482 /* Output necessary relocation to handle a symbol during static link.
3507 /* Mark it as belonging to module 1, the executable. */
3521 /* Output necessary relocation to handle a local symbol
3540 /* Emit RELATIVE relocation to initialize GOT slot
3561 /* Emit TPREL relocation to initialize GOT slot
3671 /* Relocation is to the address of the entry for this symbol
3686 /* In this case we have a reference to
3708 /* In this case we have a reference to
3717 /* Adjust GOT pointer to point to the GOT
3718 assigned to input_bfd. */
3770 the least significant bit to record whether we have
3777 /* @TLSLDM relocations are bounded to the module, in
3778 which the symbol is defined -- not to the symbol
3795 locally, or the symbol was forced to be local
3799 use the least significant bit to record whether
3803 relocation entry to initialize the value. This
3857 /* GOT pointer is adjusted to point to the start/middle
3906 /* Relocation is to the entry for this symbol in the
3972 are copied into the output file to be resolved at run
4004 /* This symbol is local, or marked to become local. */
4029 proper to subtract the symbol's value,
4057 need to do anything now, except for R_68K_32
4224 corresponds to this symbol. This is the index of this symbol
4230 corresponds to this function. Each .got entry is 4 bytes.
4300 locally, we just want to emit a RELATIVE reloc. Likewise if
4301 the symbol was forced to be local because of a version file.
4349 /* Put zeros to GOT slots that will be initialized
4522 used at runtime to relocate the section. This is called by the
4567 /* We are going to write a four byte longword into the runtime
4570 of the target section NUL-padded or truncated to 8
4581 /* Get the target section referred to by the reloc. */