Lines Matching refs:rel
668 ElfW(RelM) *rel, ElfW(Addr) value);
799 ElfW(RelM) *rel, ElfW(Addr) v) in arch_apply_relocation()
807 ElfW(Addr) *loc = (ElfW(Addr) *) (targsec->contents + rel->r_offset); in arch_apply_relocation()
812 ElfW(Addr) dot = targsec->header.sh_addr + rel->r_offset; in arch_apply_relocation()
833 switch (ELF_R_TYPE(rel->r_info)) { in arch_apply_relocation()
1371 if (ELF_R_TYPE(rel->r_info) == R_390_PLT16DBL) in arch_apply_relocation()
1380 if (ELF_R_TYPE(rel->r_info) == R_390_PLT32) in arch_apply_relocation()
1382 else if (ELF_R_TYPE(rel->r_info) == R_390_PLT16DBL) in arch_apply_relocation()
1407 if (ELF_R_TYPE(rel->r_info) == R_390_GOT12) in arch_apply_relocation()
1409 else if (ELF_R_TYPE(rel->r_info) == R_390_GOT16) in arch_apply_relocation()
1411 else if (ELF_R_TYPE(rel->r_info) == R_390_GOT32) in arch_apply_relocation()
1445 *loc = f->baseaddr + rel->r_addend; in arch_apply_relocation()
1449 *loc = got - dot + rel->r_addend; in arch_apply_relocation()
1465 if (ELF_R_TYPE(rel->r_info) == R_SH_IMM_MEDLOW16) in arch_apply_relocation()
1493 if (ELF_R_TYPE(rel->r_info) == R_SH_IMM_MEDLOW16_PCREL) in arch_apply_relocation()
1583 if (ELF64_R_TYPE(rel->r_info) == R_X86_64_GOTPCREL) in arch_apply_relocation()
1595 printf("Warning: unhandled reloc %d\n", (int)ELF_R_TYPE(rel->r_info)); in arch_apply_relocation()
1606 for (pe = isym->pltent; pe != NULL && pe->addend != rel->r_addend;) in arch_apply_relocation()
1688 *loc += isym->gotent.offset + rel->r_addend; in arch_apply_relocation()
1703 static int arch_list_add(ElfW(RelM) *rel, struct arch_list_entry **list, in arch_list_add() argument
1709 if (pe->addend == rel->r_addend) { in arch_list_add()
1717 pe->addend = rel->r_addend; in arch_list_add()
1779 ElfW(RelM) *rel, *relend; in arch_create_got()
1792 rel = (ElfW(RelM) *) relsec->contents; in arch_create_got()
1793 relend = rel + (relsec->header.sh_size / sizeof(ElfW(RelM))); in arch_create_got()
1797 for (; rel < relend; ++rel) { in arch_create_got()
1798 extsym = &symtab[ELF_R_SYM(rel->r_info)]; in arch_create_got()
1807 switch (ELF_R_TYPE(rel->r_info)) { in arch_create_got()
1888 rel, &intsym->pltent, in arch_create_got()
3091 ElfW(RelM) * rel, *relend; in obj_relocate()
3103 rel = (ElfW(RelM) *) relsec->contents; in obj_relocate()
3104 relend = rel + (relsec->header.sh_size / sizeof(ElfW(RelM))); in obj_relocate()
3108 for (; rel < relend; ++rel) { in obj_relocate()
3117 symndx = ELF_R_SYM(rel->r_info); in obj_relocate()
3145 value += rel->r_addend; in obj_relocate()
3150 (f, targsec, /*symsec,*/ intsym, rel, value) in obj_relocate()
3166 (long) ELF_R_TYPE(rel->r_info), in obj_relocate()
3170 (long) ELF_R_TYPE(rel->r_info)); in obj_relocate()