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;
2519 h->plt.offset = (bfd_vma) -1;
2526 h->plt.offset = (bfd_vma) -1;
2546 only references to the symbol are via the global offset table.
2577 offset table. The dynamic linker will use the .dynsym entry to
2578 determine the address it must put in the global offset table, so
2587 runtime process image. We need to remember the offset into the
2658 h->plt.offset = s->size;
2670 h->root.u.def.value = h->plt.offset;
2698 if (h->plt.offset == htab->plt_info->plt0_entry_size)
2709 h->plt.offset = (bfd_vma) -1;
2715 h->plt.offset = (bfd_vma) -1;
2735 h->got.offset = s->size;
2781 h->got.offset = (bfd_vma) -1;
2807 || (h->got.offset != MINUS_ONE && eh->got_type == GOT_FUNCDESC))
2812 eh->funcdesc.offset = htab->sfuncdesc->size;
3091 local_funcdesc->offset = htab->sfuncdesc->size;
3099 local_funcdesc->offset = MINUS_ONE;
3109 htab->tls_ldm_got.offset = htab->root.sgot->size;
3114 htab->tls_ldm_got.offset = -1;
3210 sh_elf_add_dyn_reloc (bfd *output_bfd, asection *sreloc, bfd_vma offset,
3216 outrel.r_offset = offset;
3232 sh_elf_add_rofixup (bfd *output_bfd, asection *srofixup, bfd_vma offset)
3238 bfd_put_32 (output_bfd, offset, srofixup->contents + fixup_offset);
3241 /* Return the offset of the generated .got section from the
3285 bfd_vma offset,
3295 /* FIXME: The ABI says that the offset to the function goes in the
3323 offset
3327 offset + 4
3341 offset
3346 bfd_put_32 (output_bfd, addr, htab->sfuncdesc->contents + offset);
3347 bfd_put_32 (output_bfd, seg, htab->sfuncdesc->contents + offset + 4);
3359 bfd_byte *contents, bfd_vma offset)
3365 if (offset > bfd_get_section_limit (input_bfd, input_section))
3373 addr = contents + offset;
3541 contents in the contents and add the offset resulting
3618 && h->plt.offset != (bfd_vma) -1)
3957 bfd_vma offset;
3975 offset = _bfd_elf_section_offset (output_bfd, info,
3977 if (offset != (bfd_vma)-1)
4002 || h->plt.offset == (bfd_vma) -1
4003 || h->got.offset != (bfd_vma) -1)
4007 offset table extension for the procedure linkage table. */
4012 + (get_plt_index (htab->plt_info, h->plt.offset)
4025 offset table. */
4035 off = h->got.offset;
4052 this entry in the global offset table. Since the
4053 offset must always be a multiple of 4, we use the
4066 h->got.offset |= 1;
4090 /* The offset must always be a multiple of 4. We use
4181 /* Use global offset table as symbol value. */
4213 if (h->plt.offset == (bfd_vma) -1)
4225 + h->plt.offset);
4265 reloc_offset = h->got.offset;
4292 section+offset. This is an optimization; the dynamic
4312 bfd_vma offset;
4322 offset = sh_elf_hash_entry (h)->funcdesc.offset;
4323 BFD_ASSERT (offset != MINUS_ONE);
4324 if ((offset & 1) == 0)
4327 offset, NULL, 0))
4329 sh_elf_hash_entry (h)->funcdesc.offset |= 1;
4337 offset = local_funcdesc[r_symndx].offset;
4338 BFD_ASSERT (offset != MINUS_ONE);
4339 if ((offset & 1) == 0)
4342 offset, sec,
4345 local_funcdesc[r_symndx].offset |= 1;
4349 relocation = htab->sfuncdesc->output_offset + (offset & ~1);
4354 bfd_vma offset;
4370 offset = _bfd_elf_section_offset (output_bfd, info,
4373 if (offset != (bfd_vma)-1)
4375 offset
4382 bfd_vma offset;
4394 offset = _bfd_elf_section_offset (output_bfd, info,
4397 if (offset != (bfd_vma)-1)
4399 offset
4424 h->got.offset |= 1;
4472 bfd_vma offset;
4478 offset = sh_elf_hash_entry (h)->funcdesc.offset;
4479 BFD_ASSERT (offset != MINUS_ONE);
4480 if ((offset & 1) == 0)
4483 offset, NULL, 0))
4485 sh_elf_hash_entry (h)->funcdesc.offset |= 1;
4493 offset = local_funcdesc[r_symndx].offset;
4494 BFD_ASSERT (offset != MINUS_ONE);
4495 if ((offset & 1) == 0)
4498 offset, sec,
4501 local_funcdesc[r_symndx].offset |= 1;
4505 relocation = htab->sfuncdesc->output_offset + (offset & ~1);
4564 bfd_vma offset;
4578 offset = rel->r_offset;
4579 if (offset < 16)
4583 (_("%pB(%pA): offset in relocation for GD->LE translation is too small: %#" PRIx64),
4584 input_bfd, input_section, (uint64_t) offset);
4589 offset -= 16;
4590 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4593 BFD_ASSERT (offset >= 2);
4594 offset -= 2;
4595 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4602 input_bfd, input_section, (uint64_t) offset, (int) insn);
4604 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4610 input_bfd, input_section, (uint64_t) offset, (int) insn);
4612 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4617 input_bfd, input_section, (uint64_t) offset, (int) insn);
4619 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4624 input_bfd, input_section, (uint64_t) offset, (int) insn);
4626 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4631 input_bfd, input_section, (uint64_t) offset, (int) insn);
4633 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4638 input_bfd, input_section, (uint64_t) offset, (int) insn);
4640 bfd_put_16 (output_bfd, 0x0012, contents + offset + 2);
4641 bfd_put_16 (output_bfd, 0x304c, contents + offset + 4);
4642 bfd_put_16 (output_bfd, 0x0009, contents + offset + 6);
4643 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4644 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4667 offset = rel->r_offset;
4668 if (offset < 16)
4672 (_("%pB(%pA): offset in relocation for IE->LE translation is too small: %#" PRIx64),
4673 input_bfd, input_section, (uint64_t) offset);
4678 offset -= 10;
4679 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4682 BFD_ASSERT (offset >= 2);
4683 offset -= 2;
4684 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4691 input_bfd, input_section, (uint64_t) offset, (int) insn);
4695 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4700 input_bfd, input_section, (uint64_t) (offset + 2), (int) insn);
4702 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4707 input_bfd, input_section, (uint64_t) (offset + 4), (int) insn);
4710 bfd_put_16 (output_bfd, insn, contents + offset + 0);
4711 bfd_put_16 (output_bfd, 0x0009, contents + offset + 4);
4723 off = h->got.offset;
4792 h->got.offset |= 1;
4804 bfd_vma offset;
4816 offset = rel->r_offset;
4817 if (offset < 16)
4821 (_("%pB(%pA): offset in relocation for GD->IE translation is too small: %#" PRIx64),
4822 input_bfd, input_section, (uint64_t) offset);
4827 offset -= 16;
4828 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4831 BFD_ASSERT (offset >= 2);
4832 offset -= 2;
4833 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4839 bfd_put_16 (output_bfd, insn & 0xf0ff, contents + offset);
4841 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4843 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4845 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4847 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4849 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4852 bfd_put_16 (output_bfd, 0x0412, contents + offset + 2);
4853 bfd_put_16 (output_bfd, 0x00ce, contents + offset + 4);
4854 bfd_put_16 (output_bfd, 0x304c, contents + offset + 6);
4855 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4856 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4873 bfd_vma offset;
4884 offset = rel->r_offset;
4885 if (offset < 16)
4889 (_("%pB(%pA): offset in relocation for LD->LE translation is too small: %#" PRIx64),
4890 input_bfd, input_section, (uint64_t) offset);
4895 offset -= 16;
4896 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4899 BFD_ASSERT (offset >= 2);
4900 offset -= 2;
4901 insn = bfd_get_16 (input_bfd, contents + offset + 0);
4905 insn = bfd_get_16 (input_bfd, contents + offset + 2);
4907 insn = bfd_get_16 (input_bfd, contents + offset + 4);
4909 insn = bfd_get_16 (input_bfd, contents + offset + 6);
4911 insn = bfd_get_16 (input_bfd, contents + offset + 8);
4913 insn = bfd_get_16 (input_bfd, contents + offset + 10);
4916 bfd_put_16 (output_bfd, 0x0012, contents + offset + 0);
4917 bfd_put_16 (output_bfd, 0x0009, contents + offset + 2);
4918 bfd_put_16 (output_bfd, 0x0009, contents + offset + 4);
4919 bfd_put_16 (output_bfd, 0x0009, contents + offset + 6);
4920 bfd_put_16 (output_bfd, 0x0009, contents + offset + 8);
4921 bfd_put_16 (output_bfd, 0x0009, contents + offset + 10);
4929 off = htab->tls_ldm_got.offset;
4944 htab->tls_ldm_got.offset |= 1;
5369 /* Some relocs require a global offset table. */
5457 /* This is a global offset table entry for a local
5955 if (h->plt.offset != (bfd_vma) -1)
5981 plt_index = get_plt_index (htab->plt_info, h->plt.offset);
5987 /* Get the offset into the .got table of the entry that
5990 /* The offset must be relative to the GOT symbol, twelve bytes
6005 memcpy (splt->contents + h->plt.offset,
6016 h->plt.offset
6023 + h->plt.offset
6035 + h->plt.offset
6055 distance = -(h->plt.offset
6061 /* Install the 'bra' with this offset. */
6065 + h->plt.offset
6072 + h->plt.offset
6088 + h->plt.offset
6091 /* Fill in the entry in the global offset table. */
6095 + h->plt.offset
6129 + h->plt.offset
6154 if (h->got.offset != (bfd_vma) -1
6164 /* This symbol has an entry in the global offset table. Set it
6173 + (h->got.offset &~ (bfd_vma) 1));
6178 The entry in the global offset table will already have been
6203 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
6374 /* Fill in the first three entries in the global offset table. */
6439 int offset;
6455 offset = 72;
6463 size, note->descpos + offset);
6533 asection *osec, bfd_vma offset,
6541 return _bfd_elf_encode_eh_address (abfd, info, osec, offset, loc_sec,
6549 return _bfd_elf_encode_eh_address (abfd, info, osec, offset,
6556 *encoded = osec->vma + offset