Home | History | Annotate | Download | only in bfd

Lines Matching defs:rela

1195 /* Create .plt, .rela.plt, .got, .rela.got, .dynbss, and
1196 .rela.bss sections in DYNOBJ, and set up shortcuts to them in our
1213 htab->srelbss = bfd_get_linker_section (dynobj, ".rela.bss");
1262 s = bfd_make_section_with_flags (abfd, ".rela.iplt",
1794 abfd, /*rela?*/ TRUE);
2267 /* Allocate space for the .rela.plt.unloaded relocations. */
2309 /* We also need to make an entry in the .rela.plt section. */
2320 /* ...and for the .rela.plt.unloaded relocations. */
2702 else if (CONST_STRNEQ (s->name, ".rela"))
2720 output file. This is mostly to handle .rela.bss and
2721 .rela.plt. We must create both sections in
2736 for the benefit of .rela.plt, which has 4 unused entries
3231 When doing a dynamic link, we create a .rela.got
3463 a dynamic relocation. But an .rela.* slot has been
4234 Elf_Internal_Rela rela;
4282 /* Add relocations to .rela.plt.unloaded. */
4289 rela.r_offset = (htab->elf.splt->output_section->vma
4292 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_HI22);
4293 rela.r_addend = got_offset;
4294 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4298 rela.r_offset += 4;
4299 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_LO10);
4300 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4304 rela.r_offset = (htab->elf.sgotplt->output_section->vma
4307 rela.r_info = ELF32_R_INFO (htab->elf.hplt->indx, R_SPARC_32);
4308 rela.r_addend = plt_offset + 20;
4309 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4333 Elf_Internal_Rela rela;
4339 .rela.iplt sections for STT_GNU_IFUNC symbols. */
4354 /* Fill in the entry in the .rela.plt section. */
4371 rela.r_offset = (htab->elf.sgotplt->output_section->vma
4374 rela.r_addend = 0;
4375 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx,
4402 rela.r_offset = r_offset
4409 rela.r_addend = (h->root.u.def.section->output_section->vma
4412 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0,
4417 rela.r_addend = (-(h->plt.offset + 4)
4420 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx,
4428 rela.r_addend = (h->root.u.def.section->output_section->vma
4431 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0,
4436 rela.r_addend = 0;
4437 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx,
4444 when setting the offset in the .rela.plt section.
4446 thus .plt[4] has corresponding .rela.plt[0] and so on. */
4450 bed->s->swap_reloca_out (output_bfd, &rela, loc);
4472 Elf_Internal_Rela rela;
4480 rela.r_offset = (sgot->output_section->vma
4509 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0, R_SPARC_IRELATIVE);
4511 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0, R_SPARC_RELATIVE);
4512 rela.r_addend = (h->root.u.def.value
4518 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx, R_SPARC_GLOB_DAT);
4519 rela.r_addend = 0;
4524 sparc_elf_append_rela (output_bfd, srela, &rela);
4530 Elf_Internal_Rela rela;
4536 ".rela.bss");
4539 rela.r_offset = (h->root.u.def.value
4542 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx, R_SPARC_COPY);
4543 rela.r_addend = 0;
4544 sparc_elf_append_rela (output_bfd, s, &rela);
4590 in .rela.plt. */
4628 case DT_PLTRELSZ: name = ".rela.plt"; size = TRUE; break;
4629 case DT_JMPREL: name = ".rela.plt"; size = FALSE; break;
4655 .rela.plt.unloaded relocations have the correct symbol indexes. */
4661 Elf_Internal_Rela rela;
4693 rela.r_offset = (htab->elf.splt->output_section->vma
4695 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_HI22);
4696 rela.r_addend = 8;
4697 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4701 rela.r_offset += 4;
4702 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_LO10);
4703 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4706 /* Fix up the remaining .rela.plt.unloaded relocations. They may have