Lines Matching defs:glink
71 /* For new-style .glink and .plt. */
1779 is_nonpic_glink_stub (bfd *abfd, asection *glink, bfd_vma off)
1783 if (!bfd_get_section_contents (abfd, glink, buf, off, sizeof buf))
1807 asection *plt, *relplt, *dynamic, *glink;
1840 of .glink at got[1]. If it wasn't prelinked, got[1] will be zero. */
1889 /* The .glink section usually does not survive the final
1891 glink stubs now reside. */
1892 glink = bfd_sections_find_if (abfd, section_covers_vma, &glink_vma);
1893 if (glink == NULL)
1896 /* Determine glink PLT resolver by reading the relative branch
1897 from the first glink stub. */
1898 if (bfd_get_section_contents (abfd, glink, buf,
1899 glink_vma - glink->vma, 4))
1903 /* The first glink stub may either branch to the resolver ... */
1911 bfd_get_section_contents (abfd, glink, buf,
1912 glink_vma - glink->vma + i, 4);
1928 stub_off = glink_vma - glink->vma;
1930 if (is_nonpic_glink_stub (abfd, glink, stub_off - stub_delta))
1957 stub_off = glink_vma - glink->vma;
1973 s->section = glink;
1993 /* Add a symbol at the start of the glink branch table. */
1997 s->section = glink;
1998 s->value = glink_vma - glink->vma;
2007 /* Add a symbol for the glink PLT resolver. */
2011 s->section = glink;
2012 s->value = resolv_vma - glink->vma;
2032 than one glink entry per symbol when generating a pic binary. */
2054 /* .glink stub offset. */
2169 asection *glink;
2193 /* Offset of branch table to PltResolve function in glink. */
2391 s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags);
2392 htab->glink = s;
2477 if (htab->glink == NULL
2913 if (htab->glink == NULL)
4060 /* Stop an unused .glink section from affecting .text alignment. */
4061 if (htab->glink != NULL
4062 && !bfd_set_section_alignment (htab->glink, 0))
5015 sh->root.u.def.section = htab->glink;
5343 s = htab->glink;
5669 s = htab->glink;
5752 if (htab->glink != NULL
5753 && htab->glink->size != 0
5756 htab->glink_pltresolve = htab->glink->size;
5758 htab->glink->size
5761 htab->glink->size += -htab->glink->size & (htab->params->ppc476_workaround
5763 htab->glink->size += GLINK_PLTRESOLVE;
5775 sh->root.u.def.section = htab->glink;
5791 sh->root.u.def.section = htab->glink;
5792 sh->root.u.def.value = htab->glink->size - GLINK_PLTRESOLVE;
5803 if (htab->glink != NULL
5804 && htab->glink->size != 0
5814 if (htab->glink->size - GLINK_PLTRESOLVE + 8 >= 256)
5842 || s == htab->glink
5914 && htab->glink != NULL
5915 && htab->glink->size != 0)
5946 /* Offset to .glink. Set later. */
5948 /* .glink size. */
5949 bfd_put_32 (htab->elf.dynobj, htab->glink->size, p);
5957 bfd_vma adv = (htab->glink->size - GLINK_PLTRESOLVE + 8) >> 2;
6354 tsec = htab->glink;
6486 || tsec == htab->glink)
7648 /* Uh oh, we are going to create a pic glink stub
7668 relocation = (htab->glink->output_section->vma
7669 + htab->glink->output_offset
8288 relocation = (htab->glink->output_section->vma
8289 + htab->glink->output_offset
8432 relocation = (htab->glink->output_section->vma
8433 + htab->glink->output_offset
9685 + htab->glink->output_section->vma
9686 + htab->glink->output_offset);
9733 p = (unsigned char *) htab->glink->contents + ent->glink_offset;
9737 /* We only need one non-PIC glink stub. */
9835 p = (unsigned char *) htab->glink->contents + ent->glink_offset;
9897 executable to the glink entry. This is to avoid
9905 (info->output_bfd, htab->glink->output_section));
9907 + htab->glink->output_offset
9908 + htab->glink->output_section->vma);
10180 if (htab->glink != NULL
10181 && htab->glink->contents != NULL
10189 * PIC glink code is the following:
10224 * Non-PIC glink code is a little simpler.
10248 p = htab->glink->contents;
10250 endp = htab->glink->contents;
10251 endp += htab->glink->size - GLINK_PLTRESOLVE;
10264 + htab->glink->output_section->vma
10265 + htab->glink->output_offset);
10271 glink branch table. */
10274 bfd_vma glink_start = (htab->glink->output_section->vma
10275 + htab->glink->output_offset);
10285 loc = htab->glink->contents + page_addr - 4 - glink_start;
10306 bcl = (htab->glink->size - GLINK_PLTRESOLVE + 3*4
10307 + htab->glink->output_section->vma
10308 + htab->glink->output_offset);
10391 /* Offset to .glink. */
10392 val = (htab->glink->output_section->vma
10393 + htab->glink->output_offset);