Lines Matching +defs:label +defs:offset

517 	 computed as though it were a jump offset, which are based
524 (_("%pB: %#" PRIx64 ": warning: bad R_SH_USES offset"),
555 (_("%pB: %#" PRIx64 ": warning: bad R_SH_USES load offset"),
687 /* When we calculated the symbol "value" we had an offset in the
689 the jsr we create does NOT have this offset encoded, so we
1329 bfd_vma *label, *label_end;
1354 the label values and the relocs. */
1356 label = labels;
1376 internal_relocs, &label,
1427 around a label, so the jump will not wind up executing an
1487 the program counter before adding in the offset.
1489 swap will not affect the offset. If ADDR is an at an
1532 /* Index I is the offset into PLT0_ENTRY of a pointer to
1549 bfd_vma reloc_offset; /* the offset of the symbol's JMP_SLOT reloc */
1554 /* The offset of the resolver stub from the start of SYMBOL_ENTRY. */
1624 0, 0, 0, 0, /* 2: replaced with offset into relocation table. */
1639 0, 0, 0, 0, /* 2: replaced with offset into relocation table. */
1657 0, 0, 0, 0 /* 2: replaced with offset into relocation table. */
1673 0, 0, 0, 0 /* 2: replaced with offset into relocation table. */
1756 0xa0, 0x00, /* bra PLT (We need to fix the offset.) */
1759 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1770 0x00, 0xa0, /* bra PLT (We need to fix the offset.) */
1773 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1782 0, 0, 0, 0, /* 0: replaced with offset of this symbol in .got. */
1787 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1796 0, 0, 0, 0, /* 0: replaced with offset of this symbol in .got. */
1801 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1877 0, 0, 0, 0, /* 0: replaced with offset of this symbol's funcdesc */
1878 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1893 0, 0, 0, 0, /* 0: replaced with offset of this symbol's funcdesc */
1894 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1941 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1955 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
2048 /* Return the index of the PLT entry at byte offset OFFSET. */
2051 get_plt_index (const struct elf_sh_plt_info *info, bfd_vma offset)
2055 offset -= info->plt0_entry_size;
2058 if (offset > MAX_SHORT_PLT * info->short_plt->symbol_entry_size)
2061 offset -= MAX_SHORT_PLT * info->short_plt->symbol_entry_size;
2066 return plt_index + offset / info->symbol_entry_size;
2074 bfd_vma offset = 0;
2080 offset = MAX_SHORT_PLT * info->short_plt->symbol_entry_size;
2086 return (offset + info->plt0_entry_size
2093 bfd_vma offset;
2107 for separately. After adjust_dynamic_symbol, the offset is
2132 /* Function descriptor refcount and offset for each local symbol. */
2174 /* A counter or offset to track a TLS got entry. */
2178 bfd_vma offset;
2522 h->plt.offset = (bfd_vma) -1;
2529 h->plt.offset = (bfd_vma) -1;
2549 only references to the symbol are via the global offset table.
2580 offset table. The dynamic linker will use the .dynsym entry to
2581 determine the address it must put in the global offset table, so
2590 runtime process image. We need to remember the offset into the
2661 h->plt.offset = s->size;
2673 h->root.u.def.value = h->plt.offset;
2701 if (h->plt.offset == htab->plt_info->plt0_entry_size)
2712 h->plt.offset = (bfd_vma) -1;
2718 h->plt.offset = (bfd_vma) -1;
2738 h->got.offset = s->size;
2784 h->got.offset = (bfd_vma) -1;
2810 || (h->got.offset != MINUS_ONE && eh->got_type == GOT_FUNCDESC))
2815 eh->funcdesc.offset = htab->sfuncdesc->size;
3094 local_funcdesc->offset = htab->sfuncdesc->size;
3102 local_funcdesc->offset = MINUS_ONE;
3112 htab->tls_ldm_got.offset = htab->root.sgot->size;
3117 htab->tls_ldm_got.offset = -1;
3213 sh_elf_add_dyn_reloc (bfd *output_bfd, asection *sreloc, bfd_vma offset,
3219 outrel.r_offset = offset;
3235 sh_elf_add_rofixup (bfd *output_bfd, asection *srofixup, bfd_vma offset)
3241 bfd_put_32 (output_bfd, offset, srofixup->contents + fixup_offset);
3244 /* Return the offset of the generated .got section from the
3288 bfd_vma offset,
3298 /* FIXME: The ABI says that the offset to the function goes in the
3326 offset
3330 offset + 4
3344 offset
3349 bfd_put_32 (output_bfd, addr, htab->sfuncdesc->contents + offset);
3350 bfd_put_32 (output_bfd, seg, htab->sfuncdesc->contents + offset + 4);
3362 bfd_byte *contents, bfd_vma offset)
3368 if (offset > bfd_get_section_limit (input_bfd, input_section))
3376 addr = contents + offset;
3544 contents in the contents and add the offset resulting
3621 && h->plt.offset != (bfd_vma) -1)
3960 bfd_vma offset;
3978 offset = _bfd_elf_section_offset (output_bfd, info,
3980 if (offset != (bfd_vma)-1)
4005 || h->plt.offset == (bfd_vma) -1
4006 || h->got.offset != (bfd_vma) -1)
4010 offset table extension for the procedure linkage table. */
4015 + (get_plt_index (htab->plt_info, h->plt.offset)
4028 offset table. */
4038 off = h->got.offset;
4055 this entry in the global offset table. Since the
4056 offset must always be a multiple of 4, we use the
4069 h->got.offset |= 1;
4093 /* The offset must always be a multiple of 4. We use
4184 /* Use global offset table as symbol value. */
4216 if (h->plt.offset == (bfd_vma) -1)
4228 + h->plt.offset);
4268 reloc_offset = h->got.offset;
4295 section+offset. This is an optimization; the dynamic
4315 bfd_vma offset;
4325 offset = sh_elf_hash_entry (h)->funcdesc.offset;
4326 BFD_ASSERT (offset != MINUS_ONE);
4327 if ((offset & 1) == 0)
4330 offset, NULL, 0))
4332 sh_elf_hash_entry (h)->funcdesc.offset |= 1;
4340 offset = local_funcdesc[r_symndx].offset;
4341 BFD_ASSERT (offset != MINUS_ONE);
4342 if ((offset & 1) == 0)
4345 offset, sec,
4348 local_funcdesc[r_symndx].offset |= 1;
4352 relocation = htab->sfuncdesc->output_offset + (offset & ~1);
4357 bfd_vma offset;
4373 offset = _bfd_elf_section_offset (output_bfd, info,
4376 if (offset != (bfd_vma)-1)
4378 offset
4385 bfd_vma offset;
4397 offset = _bfd_elf_section_offset (output_bfd, info,
4400 if (offset != (bfd_vma)-1)
4402 offset
4427 h->got.offset |= 1;
4475 bfd_vma offset;
4481 offset = sh_elf_hash_entry (h)->funcdesc.offset;
4482 BFD_ASSERT (offset != MINUS_ONE);
4483 if ((offset & 1) == 0)
4486 offset, NULL, 0))
4488 sh_elf_hash_entry (h)->funcdesc.offset |= 1;
4496 offset = local_funcdesc[r_symndx].offset;
4497 BFD_ASSERT (offset != MINUS_ONE);
4498 if ((offset & 1) == 0)
4501 offset, sec,
4504 local_funcdesc[r_symndx].offset |= 1;
4508 relocation = htab->sfuncdesc->output_offset + (offset & ~1);
4567 bfd_vma offset;
4581 offset = rel->r_offset;
4582 if (offset < 16)
4586 (_("%pB(%pA): offset in relocation for GD->LE translation is too small: %#" PRIx64),
4587 input_bfd, input_section, (uint64_t) offset);
4592 offset -= 16;
4593 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4596 BFD_ASSERT (offset >= 2);
4597 offset -= 2;
4598 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4605 input_bfd, input_section, (uint64_t) offset, (int) insn);
4607 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4613 input_bfd, input_section, (uint64_t) offset, (int) insn);
4615 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4620 input_bfd, input_section, (uint64_t) offset, (int) insn);
4622 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4627 input_bfd, input_section, (uint64_t) offset, (int) insn);
4629 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4634 input_bfd, input_section, (uint64_t) offset, (int) insn);
4636 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4641 input_bfd, input_section, (uint64_t) offset, (int) insn);
4643 bfd_put_16 (output_bfd, 0x0012, contents + offset + 2);
4644 bfd_put_16 (output_bfd, 0x304c, contents + offset + 4);
4645 bfd_put_16 (output_bfd, 0x0009, contents + offset + 6);
4646 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4647 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4670 offset = rel->r_offset;
4671 if (offset < 16)
4675 (_("%pB(%pA): offset in relocation for IE->LE translation is too small: %#" PRIx64),
4676 input_bfd, input_section, (uint64_t) offset);
4681 offset -= 10;
4682 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4685 BFD_ASSERT (offset >= 2);
4686 offset -= 2;
4687 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4694 input_bfd, input_section, (uint64_t) offset, (int) insn);
4698 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4703 input_bfd, input_section, (uint64_t) (offset + 2), (int) insn);
4705 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4710 input_bfd, input_section, (uint64_t) (offset + 4), (int) insn);
4713 bfd_put_16 (output_bfd, insn, contents + offset + 0);
4714 bfd_put_16 (output_bfd, 0x0009, contents + offset + 4);
4726 off = h->got.offset;
4795 h->got.offset |= 1;
4807 bfd_vma offset;
4819 offset = rel->r_offset;
4820 if (offset < 16)
4824 (_("%pB(%pA): offset in relocation for GD->IE translation is too small: %#" PRIx64),
4825 input_bfd, input_section, (uint64_t) offset);
4830 offset -= 16;
4831 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4834 BFD_ASSERT (offset >= 2);
4835 offset -= 2;
4836 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4842 bfd_put_16 (output_bfd, insn & 0xf0ff, contents + offset);
4844 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4846 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4848 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4850 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4852 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4855 bfd_put_16 (output_bfd, 0x0412, contents + offset + 2);
4856 bfd_put_16 (output_bfd, 0x00ce, contents + offset + 4);
4857 bfd_put_16 (output_bfd, 0x304c, contents + offset + 6);
4858 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4859 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4876 bfd_vma offset;
4887 offset = rel->r_offset;
4888 if (offset < 16)
4892 (_("%pB(%pA): offset in relocation for LD->LE translation is too small: %#" PRIx64),
4893 input_bfd, input_section, (uint64_t) offset);
4898 offset -= 16;
4899 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4902 BFD_ASSERT (offset >= 2);
4903 offset -= 2;
4904 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4908 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4910 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4912 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4914 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4916 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4919 bfd_put_16 (output_bfd, 0x0012, contents + offset + 0);
4920 bfd_put_16 (output_bfd, 0x0009, contents + offset + 2);
4921 bfd_put_16 (output_bfd, 0x0009, contents + offset + 4);
4922 bfd_put_16 (output_bfd, 0x0009, contents + offset + 6);
4923 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4924 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4932 off = htab->tls_ldm_got.offset;
4947 htab->tls_ldm_got.offset |= 1;
5372 /* Some relocs require a global offset table. */
5460 /* This is a global offset table entry for a local
5958 if (h->plt.offset != (bfd_vma) -1)
5984 plt_index = get_plt_index (htab->plt_info, h->plt.offset);
5990 /* Get the offset into the .got table of the entry that
5993 /* The offset must be relative to the GOT symbol, twelve bytes
6008 memcpy (splt->contents + h->plt.offset,
6019 h->plt.offset
6026 + h->plt.offset
6038 + h->plt.offset
6058 distance = -(h->plt.offset
6064 /* Install the 'bra' with this offset. */
6068 + h->plt.offset
6075 + h->plt.offset
6091 + h->plt.offset
6094 /* Fill in the entry in the global offset table. */
6098 + h->plt.offset
6132 + h->plt.offset
6157 if (h->got.offset != (bfd_vma) -1
6167 /* This symbol has an entry in the global offset table. Set it
6176 + (h->got.offset &~ (bfd_vma) 1));
6181 The entry in the global offset table will already have been
6208 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
6377 /* Fill in the first three entries in the global offset table. */
6442 int offset;
6458 offset = 72;
6466 size, note->descpos + offset);
6536 asection *osec, bfd_vma offset,
6544 return _bfd_elf_encode_eh_address (abfd, info, osec, offset, loc_sec,
6552 return _bfd_elf_encode_eh_address (abfd, info, osec, offset,
6559 *encoded = osec->vma + offset