Lines Matching defs:symbol

50   /* The input bfd in which the symbol is defined.  */
52 /* The index of the symbol, as stored in the relocation r_info, if
53 we have a local symbol; -1 otherwise. */
60 that should be added to the symbol value. */
63 corresponding to a global symbol in the got (or, local, if
68 corresponding to this symbol+addend. If it's a global symbol
77 /* The global symbol in the GOT with the lowest index in the dynamic
78 symbol table. */
158 /* The symbol in the global GOT with the lowest dynamic symbol table
161 /* The least dynamic symbol table index corresponding to a symbol
164 /* The greatest dynamic symbol table index corresponding to a symbol
165 with a GOT entry that is not referenced (e.g., a dynamic symbol
168 /* The greatest dynamic symbol table index not corresponding to a
169 symbol without a GOT entry. */
173 /* The MIPS ELF linker needs additional information for each symbol in
180 /* External symbol information. */
184 this symbol. */
191 /* We must not create a stub for a symbol that has relocations
201 /* Whether we need the fn_stub; this is set if this symbol appears
234 /* This is the value of the __rld_map or __rld_obj_head symbol. */
549 /* The size of a symbol-table entry. */
567 /* Add a dynamic symbol table-entry. */
679 information will indicate which symbol the section is for.
681 We record any stubs that we find in the symbol table. */
1023 /* Check the mips16 stubs for a particular symbol, and see if we can
1036 /* We don't need the fn_stub; the only references to this symbol
1077 _bfd_mips_elf_gprel16_with_gp (bfd *abfd, asymbol *symbol,
1085 if (bfd_is_com_section (symbol->section))
1088 relocation = symbol->value;
1090 relocation += symbol->section->output_section->vma;
1091 relocation += symbol->section->output_offset;
1096 /* Set val to the offset into the section or symbol. */
1103 an external symbol. */
1105 || (symbol->flags & BSF_SECTION_SYM) != 0)
1153 asymbol *symbol ATTRIBUTE_UNUSED, void *data,
1183 _bfd_mips_elf_got16_reloc (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
1187 if ((symbol->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
1188 || bfd_is_und_section (bfd_get_section (symbol))
1189 || bfd_is_com_section (bfd_get_section (symbol)))
1190 /* The relocation is against a global symbol. */
1191 return _bfd_mips_elf_generic_reloc (abfd, reloc_entry, symbol, data,
1195 return _bfd_mips_elf_hi16_reloc (abfd, reloc_entry, symbol, data,
1204 _bfd_mips_elf_lo16_reloc (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
1240 ret = _bfd_mips_elf_generic_reloc (abfd, &hi->rel, symbol, hi->data,
1250 return _bfd_mips_elf_generic_reloc (abfd, reloc_entry, symbol, data,
1261 asymbol *symbol, void *data ATTRIBUTE_UNUSED,
1276 if (!relocatable || (symbol->flags & BSF_SECTION_SYM) != 0)
1279 relocation against a section symbol. Add in the section's
1281 val += symbol->section->output_section->vma;
1282 val += symbol->section->output_offset;
1287 /* We're calculating the final field value. Add in the symbol's value
1289 val += symbol->value;
1489 /* This routine is used to write out ECOFF debugging external symbol
1491 ECOFF external symbol information must match the ELF external
1492 symbol information. Unfortunately, at this point we don't know
1493 whether a symbol is required by reloc information, so the two
1495 symbol information before we can set the final size of the .mdebug
1499 Fortunately, it is relatively unlikely that any symbol will be
1583 /* When making a shared library and symbol h is the one from
1649 /* Set type and value for a symbol with a function stub. */
1830 /* Obtain the lowest dynamic index of a symbol that was assigned a
1873 /* Returns the GOT index for the global symbol indicated by H. */
1908 symbol table index, we must put all dynamic symbols with greater
2050 /* Sort the dynamic symbol table so that symbols that need GOT entries
2053 known to be in the dynamic symbol table. During
2085 /* There should have been enough room in the symbol table to
2091 /* Now we know which dynamic symbol has the lowest dynamic symbol
2110 /* Symbols without dynamic symbol table entries aren't interesting
2136 /* If H is a symbol that needs a global GOT entry, but has a dynamic
2137 symbol table index lower than any we've seen to date, record it for
2147 /* A global symbol in the GOT must also be in the dynamic symbol
2193 /* Reserve space in G for a GOT entry containing the value of symbol
2431 to tell whether a global symbol needs a got entry (in the primary
2437 global symbol. G's assigned_gotno must contain the index of the
2440 dynamic relocation, NEEDED_RELOCS is incremented, and the symbol is
2490 points to the final symbol definition. P must point to a pointer
2667 /* The IRIX dynamic linker requires every symbol that is referenced
2674 symbol referenced in other GOTs more than once, without help from
2675 the cache. Also, knowing that every external symbol has a GOT
2693 symbol resolution while applying relocations so as to use
2694 primary GOT entries or assuming the symbol is locally-defined.
2789 /* Return whether a relocation is against a local symbol. */
2813 /* Look up the hash table to check whether the symbol
2817 /* Find the real hash-table entry for this symbol. */
2959 /* Define the symbol _GLOBAL_OFFSET_TABLE_. We don't do this in the
2960 linker script because we don't want to define the symbol if we
3025 /* The address of the symbol against which the relocation is
3027 bfd_vma symbol = 0;
3037 the relocation entry symbol, adjusted by the addend, resides
3040 /* The section in which the symbol referenced by the relocation is
3044 /* TRUE if the symbol referred to by this relocation is a local
3045 symbol. */
3047 /* TRUE if the symbol referred to by this relocation is "_gp_disp". */
3069 /* Figure out whether or not the symbol is local, and get the offset
3079 /* The symbol table does not follow the rule that local symbols
3084 /* Figure out the value of the symbol. */
3092 symbol = sec->output_section->vma + sec->output_offset;
3095 symbol += sym->st_value;
3100 addend -= symbol;
3106 ++symbol;
3108 /* Record the name of this symbol, for our caller. */
3121 /* For global symbols we look up the symbol in the hash-table. */
3124 /* Find the real hash-table entry for this symbol. */
3129 /* Record the name of this symbol, for our caller. */
3132 /* See if this is the special _gp_disp symbol. Note that such a
3133 symbol must always be a global symbol. */
3144 /* If this symbol is defined, calculate its address. Note that
3145 _gp_disp is a magic symbol, always implicitly defined by the
3154 symbol = (h->root.root.u.def.value
3158 symbol = h->root.root.u.def.value;
3165 symbol = 0;
3168 symbol = 0;
3173 _DYNAMIC_LINK symbol or _DYNAMIC_LINKING(for normal mips) symbol
3175 Otherwise, we should define the symbol with a value of 0.
3176 FIXME: It should probably get into the symbol table
3180 symbol = 0;
3190 symbol = 0;
3216 symbol = sec->output_section->vma + sec->output_offset;
3251 symbol = sec->output_section->vma + sec->output_offset;
3269 /* We need to decay to GOT_DISP/addend if the symbol doesn't
3288 symbol turns out to be global. The addend is then added
3300 symbol is defined locally, or was forced to be local.
3304 MIPS_ELF_PUT_WORD (tmpbfd, symbol, sgot->contents + g);
3314 info, symbol + addend);
3350 value = symbol + _bfd_mips_elf_sign_extend (addend, 16);
3368 against a symbol in a shared library, then we can't know
3369 where the symbol will end up. So, we create a relocation
3378 symbol,
3386 value = symbol + addend;
3396 value = symbol + addend - p;
3401 value = symbol + _bfd_mips_elf_sign_extend (addend, 18) - p;
3412 value = mips_elf_high (addend + symbol - p);
3424 value = ((addend | ((p + 4) & 0xf0000000)) + symbol) >> 2;
3426 value = (_bfd_mips_elf_sign_extend (addend, 28) + symbol) >> 2;
3433 value = mips_elf_high (addend + symbol);
3445 value = (symbol + addend) & howto->dst_mask;
3487 value = symbol + addend - gp;
3488 /* If the symbol was local, any earlier relocatable links will
3504 /* The special case is when the symbol is forced to be local. We
3510 symbol + addend, forced);
3529 value = (addend + symbol + gp0 - gp);
3535 value = _bfd_mips_elf_sign_extend (addend, 16) + symbol - p;
3560 value = mips_elf_got_page (abfd, input_bfd, info, symbol + addend, NULL);
3570 mips_elf_got_page (abfd, input_bfd, info, symbol + addend, &value);
3577 value = symbol - addend;
3582 value = mips_elf_higher (addend + symbol);
3587 value = mips_elf_highest (addend + symbol);
3592 value = symbol + addend - sec->output_offset;
3856 asection *sec, bfd_vma symbol,
3912 the field to be fully relocated, so add in the symbol's value. */
3914 *addendp += symbol;
3927 /* We must now calculate the dynamic symbol table index to use
3932 /* h->root.dynindx may be -1 if this symbol was marked to
3964 symbol, we may as well make it a fully relative
3967 incorrectly, without adding the original symbol value,
3976 a symbol value of 0. Irix rld honors this, so relocations
3984 this symbol will not be referred to by the relocation, we must
3985 adjust it by the value we give it in the dynamic symbol table.
3988 *addendp += symbol;
4005 NULL symbol before this relocation record. */
4199 allocated common symbol which may be overridden by a
4205 /* Handle the special MIPS section numbers that a symbol may use.
4228 mips_elf_acom_section.symbol = &mips_elf_acom_symbol;
4252 mips_elf_scom_section.symbol = &mips_elf_scom_symbol;
4790 elf_text_section->symbol = elf_text_symbol;
4831 elf_data_section->symbol = elf_data_symbol;
4879 /* If this is a mips16 text symbol, add 1 to the value to make it
4889 symbol. We mark symbols as small common if appropriate. This is
4890 also where we undo the increment of the value for a mips16 symbol. */
4898 /* If we see a common symbol, which implies a relocatable link, then
4899 if a symbol was small common in an input file, mark it as small
5039 the _r_debug structure. Its symbol value will be set in
5099 /* Look at the relocation information to figure out which symbol
5109 /* This stub is for a local symbol. This stub will only be
5111 than a 16 bit function call, which refers to this symbol. */
5158 /* Record this stub in an array of local symbol stubs for
5181 the global symbol table for stubs. We don't need to set
5191 /* H is the symbol this stub is for. */
5204 /* Look at the relocation information to figure out which symbol
5212 /* This stub was actually built for a static symbol defined
5225 /* H is the symbol this stub is for. */
5294 /* This may be an indirect symbol created because of a version. */
5359 (_("%s: CALL16 reloc at 0x%lx not against global symbol"),
5370 /* This symbol requires a global offset table entry. */
5383 /* If this is a global, overridable symbol, GOT_PAGE will
5409 /* This symbol requires a global offset table entry. */
5444 /* We only need to copy this reloc if the symbol is
5456 this symbol, a symbol must have a dynamic symbol
5503 /* We must not create a stub for a symbol that has relocations
5524 symbol, then we will need the fn_stub if there is one.
5605 /* If a symbol is undefined, or if it may be overridden,
5723 /* Adjust a symbol defined by a dynamic object and referenced by a
5750 /* If this symbol is defined in a dynamic object, we need to copy
5775 /* If this symbol is not defined in a regular file, then set
5776 the symbol to the stub location. This is required to make
5796 of this symbol in .dynsym section. */
5803 /* This will set the entry for this symbol in the GOT to 0, and
5809 /* If this is a weak symbol, and there is a real definition, the
5821 /* This is a reference to a symbol defined by a dynamic object which
5883 /* There has to be a global GOT entry for every symbol with
5884 a dynamic symbol table index of DT_MIPS_GOTSYM or
5886 that need GOT entries at the end of the symbol table. We
5898 /* In the worst case, we'll get one stub per dynamic symbol, plus
6363 they're against a section symbol, in which case we need
6630 /* Finish up dynamic symbol handling. We set the contents of various
6653 /* This symbol has a stub. Set it up. */
6674 /* Mark the symbol as undefined. plt.offset != -1 occurs
6675 only for the referenced symbol. */
6678 /* The run-time linker uses the st_value field of the symbol
6694 /* Run through the global symbol table, creating GOT entries for all
6834 /* If this is a mips16 symbol, force the value to be even. */
6946 /* The index into the dynamic symbol table which is the
6947 entry of the first external symbol that is not
7636 /* Copy data from a MIPS ELF indirect symbol to its direct symbol,
7637 hiding the old indirect symbol. Process additional relocation
7687 /* Since we're turning what used to be a global symbol into a
7704 /* If this was a global symbol forced into the primary GOT, we
7716 number of local entries, as this symbol won't be counted as
7721 /* If we're past non-multi-GOT allocation and this symbol had
8233 /* We'd carefully arranged the dynamic symbol indices, and then the
8520 interesting information, try to find the symbol in
8597 /* Build the external symbol information. */