Lines Matching refs:rel

112 	  XElf_Rel_vardef (rel);  in elf_i386_relocate_section()
120 xelf_getrel (data, cnt, rel); in elf_i386_relocate_section()
121 assert (rel != NULL); in elf_i386_relocate_section()
124 si = symindirect[XELF_R_SYM (rel->r_info)]; in elf_i386_relocate_section()
129 assert (symref[XELF_R_SYM (rel->r_info)] != NULL); in elf_i386_relocate_section()
130 si = symref[XELF_R_SYM (rel->r_info)]->outsymidx; in elf_i386_relocate_section()
137 xelf_getsymshndx (insymdata, inxndxdata, XELF_R_SYM (rel->r_info), in elf_i386_relocate_section()
155 assert (XELF_R_TYPE (rel->r_info) == R_386_32); in elf_i386_relocate_section()
162 add_4ubyte_unaligned (reltgtdata->d_buf + rel->r_offset, in elf_i386_relocate_section()
168 rel->r_offset += file->scninfo[shdr->sh_info].offset; in elf_i386_relocate_section()
172 rel->r_info = XELF_R_INFO (si, XELF_R_TYPE (rel->r_info)); in elf_i386_relocate_section()
175 (void) xelf_update_rel (data, cnt, rel); in elf_i386_relocate_section()
502 XElf_Rel_vardef (rel); in elf_i386_finalize_plt()
504 xelf_getrel_ptr (reldata, pltidx - 1, rel); in elf_i386_finalize_plt()
505 rel->r_offset = gotaddr + (2 + pltidx) * sizeof (Elf32_Addr); in elf_i386_finalize_plt()
508 rel->r_info = XELF_R_INFO (ndxtosym[idx]->outdynsymidx, R_386_JMP_SLOT); in elf_i386_finalize_plt()
509 (void) xelf_update_rel (reldata, pltidx - 1, rel); in elf_i386_finalize_plt()
540 XElf_Rel_vardef (rel); in elf_i386_count_relocations()
542 xelf_getrel (data, cnt, rel); in elf_i386_count_relocations()
544 if (rel != NULL) in elf_i386_count_relocations()
546 Elf32_Word r_sym = XELF_R_SYM (rel->r_info); in elf_i386_count_relocations()
554 switch (XELF_R_TYPE (rel->r_info)) in elf_i386_count_relocations()
605 && XELF_R_TYPE (rel->r_info) == R_386_32) in elf_i386_count_relocations()
770 XElf_Rel_vardef (rel); in elf_i386_create_relocations()
772 xelf_getrel (reldata, cnt, rel); in elf_i386_create_relocations()
773 assert (rel != NULL); in elf_i386_create_relocations()
774 XElf_Addr reladdr = inscnoffset + rel->r_offset; in elf_i386_create_relocations()
777 size_t idx = XELF_R_SYM (rel->r_info); in elf_i386_create_relocations()
804 unsigned char *relloc = (unsigned char *) data->d_buf + rel->r_offset; in elf_i386_create_relocations()
807 switch (XELF_R_TYPE (rel->r_info)) in elf_i386_create_relocations()
876 && XELF_R_TYPE (rel->r_info) == R_386_32) in elf_i386_create_relocations()
1020 XElf_Off old_offset = rel->r_offset; in elf_i386_create_relocations()
1021 xelf_getrel (reldata, cnt, rel); in elf_i386_create_relocations()
1022 assert (rel != NULL); in elf_i386_create_relocations()
1023 assert (XELF_R_TYPE (rel->r_info) == R_386_PLT32); in elf_i386_create_relocations()
1024 idx = XELF_R_SYM (rel->r_info); in elf_i386_create_relocations()
1027 assert (old_offset + 5 == rel->r_offset); in elf_i386_create_relocations()