Lines Matching refs:rela
60 static void check_rela(Elf_Rela *rela, struct module *me) in check_rela() argument
64 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
65 switch (ELF_R_TYPE (rela->r_info)) { in check_rela()
114 Elf_Rela *rela; in module_frob_arch_sections() local
157 rela = (void *) hdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
159 check_rela(rela + j, me); in module_frob_arch_sections()
215 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() argument
224 loc = base + rela->r_offset; in apply_rela()
227 r_sym = ELF_R_SYM(rela->r_info); in apply_rela()
228 r_type = ELF_R_TYPE(rela->r_info); in apply_rela()
242 val += rela->r_addend; in apply_rela()
261 val += rela->r_addend - loc; in apply_rela()
293 val = info->got_offset + rela->r_addend; in apply_rela()
348 info->plt_offset + rela->r_addend; in apply_rela()
357 val += rela->r_addend - loc; in apply_rela()
375 val = val + rela->r_addend - in apply_rela()
387 rela->r_addend - loc; in apply_rela()
421 Elf_Rela *rela; in apply_relocate_add() local
429 rela = (Elf_Rela *) sechdrs[relsec].sh_addr; in apply_relocate_add()
432 for (i = 0; i < n; i++, rela++) { in apply_relocate_add()
433 rc = apply_rela(rela, base, symtab, strtab, me); in apply_relocate_add()