Lines Matching refs:glink

3345       asection *dynamic, *glink = NULL, *relplt = NULL;  in ppc64_elf_get_synthetic_symtab()  local
3407 glink = bfd_sections_find_if (abfd, section_covers_vma, in ppc64_elf_get_synthetic_symtab()
3416 if (glink != NULL) in ppc64_elf_get_synthetic_symtab()
3423 while (bfd_get_section_contents (abfd, glink, buf, in ppc64_elf_get_synthetic_symtab()
3424 glink_vma + off - glink->vma, 4)) in ppc64_elf_get_synthetic_symtab()
3527 if (glink != NULL && relplt != NULL) in ppc64_elf_get_synthetic_symtab()
3535 s->section = glink; in ppc64_elf_get_synthetic_symtab()
3536 s->value = resolv_vma - glink->vma; in ppc64_elf_get_synthetic_symtab()
3571 s->section = glink; in ppc64_elf_get_synthetic_symtab()
3572 s->value = glink_vma - glink->vma; in ppc64_elf_get_synthetic_symtab()
3949 asection *glink; member
4267 htab->glink = bfd_make_section_anyway_with_flags (dynobj, ".glink", in create_linkage_sections()
4269 if (htab->glink == NULL in create_linkage_sections()
4270 || ! bfd_set_section_alignment (dynobj, htab->glink, 3)) in create_linkage_sections()
9416 s = htab->glink; in allocate_dynrelocs()
9642 s = htab->glink; in size_global_entry_stubs()
9830 if (htab->glink != NULL) in ppc64_elf_size_dynamic_sections()
9831 htab->glink->rawsize = htab->glink->size; in ppc64_elf_size_dynamic_sections()
9885 || s == htab->glink in ppc64_elf_size_dynamic_sections()
10248 + htab->glink->output_offset in build_plt_stub()
10249 + htab->glink->output_section->vma); in build_plt_stub()
12337 && htab->glink != NULL && htab->glink->size != 0) in ppc64_elf_size_stubs()
12339 htab->glink->reloc_count = 1; in ppc64_elf_size_stubs()
12340 htab->glink->flags |= SEC_RELOC; in ppc64_elf_size_stubs()
12354 if (htab->glink != NULL && htab->glink->size != 0) in ppc64_elf_size_stubs()
12437 if (htab->glink != NULL && htab->glink->size != 0) in ppc64_elf_size_stubs()
12451 bfd_put_32 (htab->elf.dynobj, htab->glink->size - 8, p); in ppc64_elf_size_stubs()
12588 s = htab->glink; in build_global_entry_stubs()
12687 if (htab->glink != NULL && htab->glink->size != 0) in ppc64_elf_build_stubs()
12703 h->root.u.def.section = htab->glink; in ppc64_elf_build_stubs()
12717 Elf_Internal_Rela *r = get_relocs (htab->glink, 1); in ppc64_elf_build_stubs()
12720 r->r_offset = (htab->glink->output_offset in ppc64_elf_build_stubs()
12721 + htab->glink->output_section->vma); in ppc64_elf_build_stubs()
12725 p = htab->glink->contents; in ppc64_elf_build_stubs()
12726 plt0 -= htab->glink->output_section->vma + htab->glink->output_offset; in ppc64_elf_build_stubs()
12727 bfd_put_64 (htab->glink->owner, plt0, p); in ppc64_elf_build_stubs()
12731 bfd_put_32 (htab->glink->owner, MFLR_R12, p); in ppc64_elf_build_stubs()
12733 bfd_put_32 (htab->glink->owner, BCL_20_31, p); in ppc64_elf_build_stubs()
12735 bfd_put_32 (htab->glink->owner, MFLR_R11, p); in ppc64_elf_build_stubs()
12737 bfd_put_32 (htab->glink->owner, LD_R2_0R11 | (-16 & 0xfffc), p); in ppc64_elf_build_stubs()
12739 bfd_put_32 (htab->glink->owner, MTLR_R12, p); in ppc64_elf_build_stubs()
12741 bfd_put_32 (htab->glink->owner, ADD_R11_R2_R11, p); in ppc64_elf_build_stubs()
12743 bfd_put_32 (htab->glink->owner, LD_R12_0R11, p); in ppc64_elf_build_stubs()
12745 bfd_put_32 (htab->glink->owner, LD_R2_0R11 | 8, p); in ppc64_elf_build_stubs()
12747 bfd_put_32 (htab->glink->owner, MTCTR_R12, p); in ppc64_elf_build_stubs()
12749 bfd_put_32 (htab->glink->owner, LD_R11_0R11 | 16, p); in ppc64_elf_build_stubs()
12754 bfd_put_32 (htab->glink->owner, MFLR_R0, p); in ppc64_elf_build_stubs()
12756 bfd_put_32 (htab->glink->owner, BCL_20_31, p); in ppc64_elf_build_stubs()
12758 bfd_put_32 (htab->glink->owner, MFLR_R11, p); in ppc64_elf_build_stubs()
12760 bfd_put_32 (htab->glink->owner, LD_R2_0R11 | (-16 & 0xfffc), p); in ppc64_elf_build_stubs()
12762 bfd_put_32 (htab->glink->owner, MTLR_R0, p); in ppc64_elf_build_stubs()
12764 bfd_put_32 (htab->glink->owner, SUB_R12_R12_R11, p); in ppc64_elf_build_stubs()
12766 bfd_put_32 (htab->glink->owner, ADD_R11_R2_R11, p); in ppc64_elf_build_stubs()
12768 bfd_put_32 (htab->glink->owner, ADDI_R0_R12 | (-48 & 0xffff), p); in ppc64_elf_build_stubs()
12770 bfd_put_32 (htab->glink->owner, LD_R12_0R11, p); in ppc64_elf_build_stubs()
12772 bfd_put_32 (htab->glink->owner, SRDI_R0_R0_2, p); in ppc64_elf_build_stubs()
12774 bfd_put_32 (htab->glink->owner, MTCTR_R12, p); in ppc64_elf_build_stubs()
12776 bfd_put_32 (htab->glink->owner, LD_R11_0R11 | 8, p); in ppc64_elf_build_stubs()
12779 bfd_put_32 (htab->glink->owner, BCTR, p); in ppc64_elf_build_stubs()
12781 while (p - htab->glink->contents < GLINK_CALL_STUB_SIZE) in ppc64_elf_build_stubs()
12783 bfd_put_32 (htab->glink->owner, NOP, p); in ppc64_elf_build_stubs()
12789 while (p < htab->glink->contents + htab->glink->rawsize) in ppc64_elf_build_stubs()
12795 bfd_put_32 (htab->glink->owner, LI_R0_0 | indx, p); in ppc64_elf_build_stubs()
12800 bfd_put_32 (htab->glink->owner, LIS_R0_0 | PPC_HI (indx), p); in ppc64_elf_build_stubs()
12802 bfd_put_32 (htab->glink->owner, ORI_R0_R0_0 | PPC_LO (indx), in ppc64_elf_build_stubs()
12807 bfd_put_32 (htab->glink->owner, in ppc64_elf_build_stubs()
12808 B_DOT | ((htab->glink->contents - p + 8) & 0x3fffffc), p); in ppc64_elf_build_stubs()
12814 if (htab->glink->size > htab->glink->rawsize) in ppc64_elf_build_stubs()
15028 s = htab->glink; in ppc64_elf_finish_dynamic_sections()
15126 if (htab->glink != NULL in ppc64_elf_finish_dynamic_sections()
15127 && htab->glink->reloc_count != 0 in ppc64_elf_finish_dynamic_sections()
15129 htab->glink, in ppc64_elf_finish_dynamic_sections()
15130 elf_section_data (htab->glink)->rela.hdr, in ppc64_elf_finish_dynamic_sections()
15131 elf_section_data (htab->glink)->relocs, in ppc64_elf_finish_dynamic_sections()
15174 if (htab->glink != NULL && htab->glink->size != 0) in ppc64_elf_finish_dynamic_sections()
15181 val = (htab->glink->output_section->vma in ppc64_elf_finish_dynamic_sections()
15182 + htab->glink->output_offset in ppc64_elf_finish_dynamic_sections()
15191 htab->glink->name); in ppc64_elf_finish_dynamic_sections()