Lines Matching defs:glink
69 /* For new-style .glink and .plt. */
2785 is_nonpic_glink_stub (bfd *abfd, asection *glink, bfd_vma off)
2789 if (!bfd_get_section_contents (abfd, glink, buf, off, GLINK_ENTRY_SIZE))
2813 asection *plt, *relplt, *dynamic, *glink;
2846 of .glink at got[1]. If it wasn't prelinked, got[1] will be zero. */
2894 /* The .glink section usually does not survive the final
2896 glink stubs now reside. */
2897 glink = bfd_sections_find_if (abfd, section_covers_vma, &glink_vma);
2898 if (glink == NULL)
2901 /* Determine glink PLT resolver by reading the relative branch
2902 from the first glink stub. */
2903 if (bfd_get_section_contents (abfd, glink, buf,
2904 glink_vma - glink->vma, 4))
2908 /* The first glink stub may either branch to the resolver ... */
2916 bfd_get_section_contents (abfd, glink, buf,
2917 glink_vma - glink->vma + i, 4);
2932 if (!is_nonpic_glink_stub (abfd, glink,
2933 glink_vma - GLINK_ENTRY_SIZE - glink->vma))
2970 s->section = glink;
2971 s->value = stub_vma - glink->vma;
2990 /* Add a symbol at the start of the glink branch table. */
2994 s->section = glink;
2995 s->value = glink_vma - glink->vma;
3004 /* Add a symbol for the glink PLT resolver. */
3008 s->section = glink;
3009 s->value = resolv_vma - glink->vma;
3029 than one glink entry per symbol when generating a pic binary. */
3051 /* .glink stub offset. */
3152 asection *glink;
3183 /* Offset of branch table to PltResolve function in glink. */
3386 s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags);
3387 htab->glink = s;
3450 if (htab->glink == NULL
3897 if (htab->glink == NULL)
4884 /* Stop an unused .glink section from affecting .text alignment. */
4885 if (htab->glink != NULL
4886 && !bfd_set_section_alignment (htab->elf.dynobj, htab->glink, 0))
5688 sh->root.u.def.section = htab->glink;
5789 s = htab->glink;
6280 s = htab->glink;
6347 if (htab->glink != NULL
6348 && htab->glink->size != 0
6351 htab->glink_pltresolve = htab->glink->size;
6353 htab->glink->size += htab->glink->size / (GLINK_ENTRY_SIZE / 4) - 4;
6355 htab->glink->size += -htab->glink->size & (htab->params->ppc476_workaround
6357 htab->glink->size += GLINK_PLTRESOLVE;
6369 sh->root.u.def.section = htab->glink;
6384 sh->root.u.def.section = htab->glink;
6385 sh->root.u.def.value = htab->glink->size - GLINK_PLTRESOLVE;
6395 if (htab->glink != NULL
6396 && htab->glink->size != 0
6406 if (htab->glink->size - GLINK_PLTRESOLVE + 8 >= 256)
6433 || s == htab->glink
6516 && htab->glink != NULL
6517 && htab->glink->size != 0)
6571 /* Offset to .glink. Set later. */
6573 /* .glink size. */
6574 bfd_put_32 (htab->elf.dynobj, htab->glink->size, p);
6582 bfd_vma adv = (htab->glink->size - GLINK_PLTRESOLVE + 8) >> 2;
6983 tsec = htab->glink;
7092 || tsec == htab->glink)
8013 unsigned char *p = ((unsigned char *) htab->glink->contents
8024 relocation = (htab->glink->output_section->vma
8025 + htab->glink->output_offset
8588 relocation = (htab->glink->output_section->vma
8589 + htab->glink->output_offset
8724 relocation = (htab->glink->output_section->vma
8725 + htab->glink->output_offset
9691 + htab->glink->output_section->vma
9692 + htab->glink->output_offset);
9747 executable to the glink entry. This is to avoid
9754 (output_bfd, htab->glink->output_section));
9756 + htab->glink->output_offset
9757 + htab->glink->output_section->vma);
9772 p = (unsigned char *) htab->glink->contents + ent->glink_offset;
9797 /* We only need one non-PIC glink stub. */
10068 if (htab->glink != NULL
10069 && htab->glink->contents != NULL
10078 glink code is the following:
10134 * Non-PIC glink code is a little simpler.
10182 p = htab->glink->contents;
10184 endp = htab->glink->contents;
10185 endp += htab->glink->size - GLINK_PLTRESOLVE;
10198 + htab->glink->output_section->vma
10199 + htab->glink->output_offset);
10205 glink branch table. */
10208 bfd_vma glink_start = (htab->glink->output_section->vma
10209 + htab->glink->output_offset);
10219 loc = htab->glink->contents + page_addr - 4 - glink_start;
10250 bcl = (htab->glink->size - GLINK_PLTRESOLVE + 3*4
10251 + htab->glink->output_section->vma
10252 + htab->glink->output_offset);
10322 /* Offset to .glink. */
10323 val = (htab->glink->output_section->vma
10324 + htab->glink->output_offset);