Lines Matching +defs:label +defs:offset

516 	 computed as though it were a jump offset, which are based
523 (_("%pB: %#" PRIx64 ": warning: bad R_SH_USES offset"),
554 (_("%pB: %#" PRIx64 ": warning: bad R_SH_USES load offset"),
686 /* When we calculated the symbol "value" we had an offset in the
688 the jsr we create does NOT have this offset encoded, so we
1327 bfd_vma *label, *label_end;
1352 the label values and the relocs. */
1354 label = labels;
1374 internal_relocs, &label,
1425 around a label, so the jump will not wind up executing an
1485 the program counter before adding in the offset.
1487 swap will not affect the offset. If ADDR is an at an
1530 /* Index I is the offset into PLT0_ENTRY of a pointer to
1547 bfd_vma reloc_offset; /* the offset of the symbol's JMP_SLOT reloc */
1552 /* The offset of the resolver stub from the start of SYMBOL_ENTRY. */
1622 0, 0, 0, 0, /* 2: replaced with offset into relocation table. */
1637 0, 0, 0, 0, /* 2: replaced with offset into relocation table. */
1655 0, 0, 0, 0 /* 2: replaced with offset into relocation table. */
1671 0, 0, 0, 0 /* 2: replaced with offset into relocation table. */
1754 0xa0, 0x00, /* bra PLT (We need to fix the offset.) */
1757 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1768 0x00, 0xa0, /* bra PLT (We need to fix the offset.) */
1771 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1780 0, 0, 0, 0, /* 0: replaced with offset of this symbol in .got. */
1785 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1794 0, 0, 0, 0, /* 0: replaced with offset of this symbol in .got. */
1799 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1875 0, 0, 0, 0, /* 0: replaced with offset of this symbol's funcdesc */
1876 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1891 0, 0, 0, 0, /* 0: replaced with offset of this symbol's funcdesc */
1892 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1939 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
1953 0, 0, 0, 0, /* 1: replaced with offset into relocation table. */
2046 /* Return the index of the PLT entry at byte offset OFFSET. */
2049 get_plt_index (const struct elf_sh_plt_info *info, bfd_vma offset)
2053 offset -= info->plt0_entry_size;
2056 if (offset > MAX_SHORT_PLT * info->short_plt->symbol_entry_size)
2059 offset -= MAX_SHORT_PLT * info->short_plt->symbol_entry_size;
2064 return plt_index + offset / info->symbol_entry_size;
2072 bfd_vma offset = 0;
2078 offset = MAX_SHORT_PLT * info->short_plt->symbol_entry_size;
2084 return (offset + info->plt0_entry_size
2091 bfd_vma offset;
2105 for separately. After adjust_dynamic_symbol, the offset is
2130 /* Function descriptor refcount and offset for each local symbol. */
2172 /* A counter or offset to track a TLS got entry. */
2176 bfd_vma offset;
2520 h->plt.offset = (bfd_vma) -1;
2527 h->plt.offset = (bfd_vma) -1;
2547 only references to the symbol are via the global offset table.
2578 offset table. The dynamic linker will use the .dynsym entry to
2579 determine the address it must put in the global offset table, so
2588 runtime process image. We need to remember the offset into the
2659 h->plt.offset = s->size;
2671 h->root.u.def.value = h->plt.offset;
2699 if (h->plt.offset == htab->plt_info->plt0_entry_size)
2710 h->plt.offset = (bfd_vma) -1;
2716 h->plt.offset = (bfd_vma) -1;
2736 h->got.offset = s->size;
2782 h->got.offset = (bfd_vma) -1;
2808 || (h->got.offset != MINUS_ONE && eh->got_type == GOT_FUNCDESC))
2813 eh->funcdesc.offset = htab->sfuncdesc->size;
3092 local_funcdesc->offset = htab->sfuncdesc->size;
3100 local_funcdesc->offset = MINUS_ONE;
3110 htab->tls_ldm_got.offset = htab->root.sgot->size;
3115 htab->tls_ldm_got.offset = -1;
3211 sh_elf_add_dyn_reloc (bfd *output_bfd, asection *sreloc, bfd_vma offset,
3217 outrel.r_offset = offset;
3233 sh_elf_add_rofixup (bfd *output_bfd, asection *srofixup, bfd_vma offset)
3239 bfd_put_32 (output_bfd, offset, srofixup->contents + fixup_offset);
3242 /* Return the offset of the generated .got section from the
3286 bfd_vma offset,
3296 /* FIXME: The ABI says that the offset to the function goes in the
3324 offset
3328 offset + 4
3342 offset
3347 bfd_put_32 (output_bfd, addr, htab->sfuncdesc->contents + offset);
3348 bfd_put_32 (output_bfd, seg, htab->sfuncdesc->contents + offset + 4);
3360 bfd_byte *contents, bfd_vma offset)
3366 if (offset > bfd_get_section_limit (input_bfd, input_section))
3374 addr = contents + offset;
3542 contents in the contents and add the offset resulting
3619 && h->plt.offset != (bfd_vma) -1)
3958 bfd_vma offset;
3976 offset = _bfd_elf_section_offset (output_bfd, info,
3978 if (offset != (bfd_vma)-1)
4003 || h->plt.offset == (bfd_vma) -1
4004 || h->got.offset != (bfd_vma) -1)
4008 offset table extension for the procedure linkage table. */
4013 + (get_plt_index (htab->plt_info, h->plt.offset)
4026 offset table. */
4036 off = h->got.offset;
4053 this entry in the global offset table. Since the
4054 offset must always be a multiple of 4, we use the
4067 h->got.offset |= 1;
4091 /* The offset must always be a multiple of 4. We use
4182 /* Use global offset table as symbol value. */
4214 if (h->plt.offset == (bfd_vma) -1)
4226 + h->plt.offset);
4266 reloc_offset = h->got.offset;
4293 section+offset. This is an optimization; the dynamic
4313 bfd_vma offset;
4323 offset = sh_elf_hash_entry (h)->funcdesc.offset;
4324 BFD_ASSERT (offset != MINUS_ONE);
4325 if ((offset & 1) == 0)
4328 offset, NULL, 0))
4330 sh_elf_hash_entry (h)->funcdesc.offset |= 1;
4338 offset = local_funcdesc[r_symndx].offset;
4339 BFD_ASSERT (offset != MINUS_ONE);
4340 if ((offset & 1) == 0)
4343 offset, sec,
4346 local_funcdesc[r_symndx].offset |= 1;
4350 relocation = htab->sfuncdesc->output_offset + (offset & ~1);
4355 bfd_vma offset;
4371 offset = _bfd_elf_section_offset (output_bfd, info,
4374 if (offset != (bfd_vma)-1)
4376 offset
4383 bfd_vma offset;
4395 offset = _bfd_elf_section_offset (output_bfd, info,
4398 if (offset != (bfd_vma)-1)
4400 offset
4425 h->got.offset |= 1;
4473 bfd_vma offset;
4479 offset = sh_elf_hash_entry (h)->funcdesc.offset;
4480 BFD_ASSERT (offset != MINUS_ONE);
4481 if ((offset & 1) == 0)
4484 offset, NULL, 0))
4486 sh_elf_hash_entry (h)->funcdesc.offset |= 1;
4494 offset = local_funcdesc[r_symndx].offset;
4495 BFD_ASSERT (offset != MINUS_ONE);
4496 if ((offset & 1) == 0)
4499 offset, sec,
4502 local_funcdesc[r_symndx].offset |= 1;
4506 relocation = htab->sfuncdesc->output_offset + (offset & ~1);
4565 bfd_vma offset;
4579 offset = rel->r_offset;
4580 if (offset < 16)
4584 (_("%pB(%pA): offset in relocation for GD->LE translation is too small: %#" PRIx64),
4585 input_bfd, input_section, (uint64_t) offset);
4590 offset -= 16;
4591 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4594 BFD_ASSERT (offset >= 2);
4595 offset -= 2;
4596 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4603 input_bfd, input_section, (uint64_t) offset, (int) insn);
4605 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4611 input_bfd, input_section, (uint64_t) offset, (int) insn);
4613 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4618 input_bfd, input_section, (uint64_t) offset, (int) insn);
4620 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4625 input_bfd, input_section, (uint64_t) offset, (int) insn);
4627 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4632 input_bfd, input_section, (uint64_t) offset, (int) insn);
4634 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4639 input_bfd, input_section, (uint64_t) offset, (int) insn);
4641 bfd_put_16 (output_bfd, 0x0012, contents + offset + 2);
4642 bfd_put_16 (output_bfd, 0x304c, contents + offset + 4);
4643 bfd_put_16 (output_bfd, 0x0009, contents + offset + 6);
4644 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4645 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4668 offset = rel->r_offset;
4669 if (offset < 16)
4673 (_("%pB(%pA): offset in relocation for IE->LE translation is too small: %#" PRIx64),
4674 input_bfd, input_section, (uint64_t) offset);
4679 offset -= 10;
4680 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4683 BFD_ASSERT (offset >= 2);
4684 offset -= 2;
4685 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4692 input_bfd, input_section, (uint64_t) offset, (int) insn);
4696 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4701 input_bfd, input_section, (uint64_t) (offset + 2), (int) insn);
4703 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4708 input_bfd, input_section, (uint64_t) (offset + 4), (int) insn);
4711 bfd_put_16 (output_bfd, insn, contents + offset + 0);
4712 bfd_put_16 (output_bfd, 0x0009, contents + offset + 4);
4724 off = h->got.offset;
4793 h->got.offset |= 1;
4805 bfd_vma offset;
4817 offset = rel->r_offset;
4818 if (offset < 16)
4822 (_("%pB(%pA): offset in relocation for GD->IE translation is too small: %#" PRIx64),
4823 input_bfd, input_section, (uint64_t) offset);
4828 offset -= 16;
4829 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4832 BFD_ASSERT (offset >= 2);
4833 offset -= 2;
4834 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4840 bfd_put_16 (output_bfd, insn & 0xf0ff, contents + offset);
4842 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4844 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4846 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4848 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4850 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4853 bfd_put_16 (output_bfd, 0x0412, contents + offset + 2);
4854 bfd_put_16 (output_bfd, 0x00ce, contents + offset + 4);
4855 bfd_put_16 (output_bfd, 0x304c, contents + offset + 6);
4856 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4857 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4874 bfd_vma offset;
4885 offset = rel->r_offset;
4886 if (offset < 16)
4890 (_("%pB(%pA): offset in relocation for LD->LE translation is too small: %#" PRIx64),
4891 input_bfd, input_section, (uint64_t) offset);
4896 offset -= 16;
4897 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4900 BFD_ASSERT (offset >= 2);
4901 offset -= 2;
4902 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4906 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4908 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4910 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4912 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4914 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4917 bfd_put_16 (output_bfd, 0x0012, contents + offset + 0);
4918 bfd_put_16 (output_bfd, 0x0009, contents + offset + 2);
4919 bfd_put_16 (output_bfd, 0x0009, contents + offset + 4);
4920 bfd_put_16 (output_bfd, 0x0009, contents + offset + 6);
4921 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4922 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4930 off = htab->tls_ldm_got.offset;
4945 htab->tls_ldm_got.offset |= 1;
5361 /* Some relocs require a global offset table. */
5449 /* This is a global offset table entry for a local
5947 if (h->plt.offset != (bfd_vma) -1)
5973 plt_index = get_plt_index (htab->plt_info, h->plt.offset);
5979 /* Get the offset into the .got table of the entry that
5982 /* The offset must be relative to the GOT symbol, twelve bytes
5997 memcpy (splt->contents + h->plt.offset,
6008 h->plt.offset
6015 + h->plt.offset
6027 + h->plt.offset
6047 distance = -(h->plt.offset
6053 /* Install the 'bra' with this offset. */
6057 + h->plt.offset
6064 + h->plt.offset
6080 + h->plt.offset
6083 /* Fill in the entry in the global offset table. */
6087 + h->plt.offset
6121 + h->plt.offset
6146 if (h->got.offset != (bfd_vma) -1
6156 /* This symbol has an entry in the global offset table. Set it
6165 + (h->got.offset &~ (bfd_vma) 1));
6170 The entry in the global offset table will already have been
6195 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
6366 /* Fill in the first three entries in the global offset table. */
6431 int offset;
6447 offset = 72;
6455 size, note->descpos + offset);
6525 asection *osec, bfd_vma offset,
6533 return _bfd_elf_encode_eh_address (abfd, info, osec, offset, loc_sec,
6541 return _bfd_elf_encode_eh_address (abfd, info, osec, offset,
6548 *encoded = osec->vma + offset