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. */
2700 else if (CONST_STRNEQ (s->name, ".rela"))
2718 output file. This is mostly to handle .rela.bss and
2719 .rela.plt. We must create both sections in
2734 for the benefit of .rela.plt, which has 4 unused entries
3227 When doing a dynamic link, we create a .rela.got
3459 a dynamic relocation. But an .rela.* slot has been
4229 Elf_Internal_Rela rela;
4277 /* Add relocations to .rela.plt.unloaded. */
4284 rela.r_offset = (htab->elf.splt->output_section->vma
4287 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_HI22);
4288 rela.r_addend = got_offset;
4289 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4293 rela.r_offset += 4;
4294 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_LO10);
4295 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4299 rela.r_offset = (htab->elf.sgotplt->output_section->vma
4302 rela.r_info = ELF32_R_INFO (htab->elf.hplt->indx, R_SPARC_32);
4303 rela.r_addend = plt_offset + 20;
4304 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4328 Elf_Internal_Rela rela;
4334 .rela.iplt sections for STT_GNU_IFUNC symbols. */
4349 /* Fill in the entry in the .rela.plt section. */
4366 rela.r_offset = (htab->elf.sgotplt->output_section->vma
4369 rela.r_addend = 0;
4370 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx,
4397 rela.r_offset = r_offset
4404 rela.r_addend = (h->root.u.def.section->output_section->vma
4407 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0,
4412 rela.r_addend = (-(h->plt.offset + 4)
4415 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx,
4423 rela.r_addend = (h->root.u.def.section->output_section->vma
4426 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0,
4431 rela.r_addend = 0;
4432 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx,
4439 when setting the offset in the .rela.plt section.
4441 thus .plt[4] has corresponding .rela.plt[0] and so on. */
4445 bed->s->swap_reloca_out (output_bfd, &rela, loc);
4467 Elf_Internal_Rela rela;
4475 rela.r_offset = (sgot->output_section->vma
4504 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0, R_SPARC_IRELATIVE);
4506 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, 0, R_SPARC_RELATIVE);
4507 rela.r_addend = (h->root.u.def.value
4513 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx, R_SPARC_GLOB_DAT);
4514 rela.r_addend = 0;
4519 sparc_elf_append_rela (output_bfd, srela, &rela);
4525 Elf_Internal_Rela rela;
4531 ".rela.bss");
4534 rela.r_offset = (h->root.u.def.value
4537 rela.r_info = SPARC_ELF_R_INFO (htab, NULL, h->dynindx, R_SPARC_COPY);
4538 rela.r_addend = 0;
4539 sparc_elf_append_rela (output_bfd, s, &rela);
4585 in .rela.plt. */
4623 case DT_PLTRELSZ: name = ".rela.plt"; size = TRUE; break;
4624 case DT_JMPREL: name = ".rela.plt"; size = FALSE; break;
4650 .rela.plt.unloaded relocations have the correct symbol indexes. */
4656 Elf_Internal_Rela rela;
4688 rela.r_offset = (htab->elf.splt->output_section->vma
4690 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_HI22);
4691 rela.r_addend = 8;
4692 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4696 rela.r_offset += 4;
4697 rela.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_LO10);
4698 bfd_elf32_swap_reloca_out (output_bfd, &rela, loc);
4701 /* Fix up the remaining .rela.plt.unloaded relocations. They may have