Lines Matching defs:got

99   /* tls_type for each local got entry.  */
191 /* auipc t2, %hi(.got.plt)
192 sub t1, t1, t3 # shifted .got.plt offset + hdr size + 12
193 l[w|d] t3, %lo(.got.plt)(t2) # _dl_runtime_resolve
194 addi t1, t1, -(hdr size + 12) # shifted .got.plt offset
195 addi t0, t2, %lo(.got.plt) # &.got.plt
196 srli t1, t1, log2(16/PTRSIZE) # .got.plt offset
213 riscv_make_plt_entry (bfd_vma got, bfd_vma addr, uint32_t *entry)
215 /* auipc t3, %hi(.got.plt entry)
216 l[w|d] t3, %lo(.got.plt entry)(t3)
220 entry[0] = RISCV_UTYPE (AUIPC, X_T3, RISCV_PCREL_HIGH_PART (got, addr));
221 entry[1] = RISCV_ITYPE (LREG, X_T3, X_T3, RISCV_PCREL_LOW_PART (got, addr));
280 /* Create the .got section. */
299 ? ".rela.got" : ".rel.got"),
307 s = s_got = bfd_make_section_anyway_with_flags (abfd, ".got", flags);
318 s = bfd_make_section_anyway_with_flags (abfd, ".got.plt", flags);
331 /* Define the symbol _GLOBAL_OFFSET_TABLE_ at the start of the .got
345 /* Create .plt, .rela.plt, .got, .got.plt, .rela.got, .dynbss, and
422 && dir->got.refcount <= 0)
462 h->got.refcount += 1;
757 /* Update the got entry reference counts for the section being removed. */
808 if (h->got.refcount > 0)
809 h->got.refcount--;
990 /* Allocate space in .plt, .got and associated reloc sections for
1032 /* We also need to make an entry in the .got.plt section. */
1062 if (h->got.refcount > 0)
1078 h->got.offset = s->size;
1104 h->got.offset = (bfd_vma) -1;
1241 /* Set up .got offsets for local syms, and space for local dynamic
1306 /* Allocate global sym .plt and .got entries, and space for global
1312 struct elf_link_hash_entry *got;
1313 got = elf_link_hash_lookup (elf_hash_table (info),
1317 /* Don't allocate .got.plt section if there are no GOT nor PLT
1319 if ((got == NULL
1320 || !got->ref_regular_nonweak)
1860 off = h->got.offset;
1877 When doing a dynamic link, we create a .rela.got
1886 h->got.offset |= 1;
2098 off = h->got.offset;
2099 h->got.offset |= 1;
2319 /* Calculate the address of the .got.plt entry. */
2331 /* Fill in the initial value of the .got.plt entry. */
2358 if (h->got.offset != (bfd_vma) -1
2371 rela.r_offset = sec_addr (sgot) + (h->got.offset &~ (bfd_vma) 1);
2396 sgot->contents + (h->got.offset & ~(bfd_vma) 1));
2524 /* Write the first two entries in .got.plt, needed for the dynamic