• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/gdb/bfd/

Lines Matching defs:stub_entry

3733   struct ppc_stub_hash_entry *stub_entry;
3747 stub_entry = h->u.stub_cache;
3757 stub_entry = ppc_stub_hash_lookup (&htab->stub_hash_table,
3760 h->u.stub_cache = stub_entry;
3765 return stub_entry;
3778 struct ppc_stub_hash_entry *stub_entry;
3808 stub_entry = ppc_stub_hash_lookup (&htab->stub_hash_table, stub_name,
3810 if (stub_entry == NULL)
3817 stub_entry->stub_sec = stub_sec;
3818 stub_entry->stub_offset = 0;
3819 stub_entry->id_sec = link_sec;
3820 return stub_entry;
8241 struct ppc_stub_hash_entry *stub_entry;
8253 stub_entry = (struct ppc_stub_hash_entry *) gen_entry;
8259 stub_entry->stub_offset = stub_entry->stub_sec->size;
8260 loc = stub_entry->stub_sec->contents + stub_entry->stub_offset;
8262 htab->stub_count[stub_entry->stub_type - 1] += 1;
8263 switch (stub_entry->stub_type)
8268 off = dest = (stub_entry->target_value
8269 + stub_entry->target_section->output_offset
8270 + stub_entry->target_section->output_section->vma);
8273 off -= (stub_entry->stub_offset
8274 + stub_entry->stub_sec->output_offset
8275 + stub_entry->stub_sec->output_section->vma);
8278 if (stub_entry->stub_type == ppc_stub_long_branch_r2off)
8282 r2off = (htab->stub_group[stub_entry->target_section->id].toc_off
8283 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8302 stub_entry->root.string);
8312 elfsec_data = elf_section_data (stub_entry->stub_sec);
8317 relsize = stub_entry->stub_sec->reloc_count * sizeof (*relocs);
8324 stub_entry->stub_sec->reloc_count = 0;
8326 r = relocs + stub_entry->stub_sec->reloc_count;
8327 stub_entry->stub_sec->reloc_count += 1;
8328 r->r_offset = loc - stub_entry->stub_sec->contents;
8331 if (stub_entry->h != NULL)
8350 h = stub_entry->h;
8355 if (h->elf.root.u.def.section != stub_entry->target_section)
8372 stub_entry->root.string + 9,
8377 stub_entry->root.string);
8382 off = (stub_entry->target_value
8383 + stub_entry->target_section->output_offset
8384 + stub_entry->target_section->output_section->vma);
8437 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8443 stub_entry->root.string);
8450 if (stub_entry->stub_type != ppc_stub_plt_branch_r2off)
8469 r2off = (htab->stub_group[stub_entry->target_section->id].toc_off
8470 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8506 if (stub_entry->h->oh != NULL
8507 && stub_entry->h->oh->elf.root.type != bfd_link_hash_defined
8508 && stub_entry->h->oh->elf.root.type != bfd_link_hash_defweak)
8515 stub_entry->h->oh->elf.root.type = bfd_link_hash_defined;
8516 stub_entry->h->oh->elf.root.u.def.section = stub_entry->stub_sec;
8517 stub_entry->h->oh->elf.root.u.def.value = stub_entry->stub_offset;
8522 for (ent = stub_entry->h->elf.plt.plist; ent != NULL; ent = ent->next)
8523 if (ent->addend == stub_entry->addend)
8535 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8541 stub_entry->h->elf.root.root.string);
8556 stub_entry->stub_sec->size += size;
8569 len1 = strlen (stub_str[stub_entry->stub_type - 1]);
8570 len2 = strlen (stub_entry->root.string);
8574 memcpy (name, stub_entry->root.string, 9);
8575 memcpy (name + 9, stub_str[stub_entry->stub_type - 1], len1);
8576 memcpy (name + len1 + 9, stub_entry->root.string + 8, len2 - 8 + 1);
8583 h->root.u.def.section = stub_entry->stub_sec;
8584 h->root.u.def.value = stub_entry->stub_offset;
8603 struct ppc_stub_hash_entry *stub_entry;
8610 stub_entry = (struct ppc_stub_hash_entry *) gen_entry;
8615 if (stub_entry->stub_type == ppc_stub_plt_call)
8619 for (ent = stub_entry->h->elf.plt.plist; ent != NULL; ent = ent->next)
8620 if (ent->addend == stub_entry->addend)
8630 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8644 off = (stub_entry->target_value
8645 + stub_entry->target_section->output_offset
8646 + stub_entry->target_section->output_section->vma);
8647 off -= (stub_entry->stub_sec->size
8648 + stub_entry->stub_sec->output_offset
8649 + stub_entry->stub_sec->output_section->vma);
8653 if (stub_entry->stub_type >= ppc_stub_plt_branch)
8654 stub_entry->stub_type += ppc_stub_long_branch - ppc_stub_plt_branch;
8657 if (stub_entry->stub_type == ppc_stub_long_branch_r2off)
8659 r2off = (htab->stub_group[stub_entry->target_section->id].toc_off
8660 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8674 stub_entry->root.string + 9,
8679 stub_entry->root.string);
8699 stub_entry->stub_type += ppc_stub_plt_branch - ppc_stub_long_branch;
8704 - htab->stub_group[stub_entry->id_sec->id].toc_off);
8707 if (stub_entry->stub_type != ppc_stub_plt_branch_r2off)
8725 stub_entry->stub_sec->reloc_count += 1;
8726 stub_entry->stub_sec->flags |= SEC_RELOC;
8730 stub_entry->stub_sec->size += size;
9294 struct ppc_stub_hash_entry *stub_entry;
9460 stub_entry = ppc_stub_hash_lookup (&htab->stub_hash_table,
9462 if (stub_entry != NULL)
9469 stub_entry = ppc_add_stub (stub_name, section, htab);
9470 if (stub_entry == NULL)
9484 stub_entry->stub_type = stub_type;
9485 stub_entry->target_value = sym_value;
9486 stub_entry->target_section = code_sec;
9487 stub_entry->h = hash;
9488 stub_entry->addend = irela->r_addend;
9490 if (stub_entry->h != NULL)
9926 struct ppc_stub_hash_entry *stub_entry;
10396 stub_entry = NULL;
10407 && (stub_entry = ppc_get_stub_entry (input_section, sec, fdh,
10409 && (stub_entry->stub_type == ppc_stub_plt_call
10410 || stub_entry->stub_type == ppc_stub_plt_branch_r2off
10411 || stub_entry->stub_type == ppc_stub_long_branch_r2off))
10430 if (stub_entry->stub_type == ppc_stub_plt_call)
10441 stub_entry = NULL;
10481 && stub_entry->stub_type == ppc_stub_plt_call)
10485 if (stub_entry == NULL
10506 if (stub_entry == NULL
10511 stub_entry = ppc_get_stub_entry (input_section, sec, h, rel,
10514 if (stub_entry != NULL)
10518 relocation = (stub_entry->stub_offset
10519 + stub_entry->stub_sec->output_offset
10520 + stub_entry->stub_sec->output_section->vma);