Lines Matching refs:rel
237 int rel; in apply_r_mips_gprel16() local
240 rel = (int)v - gp_addr; in apply_r_mips_gprel16()
244 rel = (int)(short)((int)v + gp_offs + in apply_r_mips_gprel16()
248 if ((rel > 32768) || (rel < -32768)) { in apply_r_mips_gprel16()
250 rel); in apply_r_mips_gprel16()
254 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_gprel16()
262 int rel; in apply_r_mips_pc16() local
263 rel = (((unsigned int)v - (unsigned int)location)); in apply_r_mips_pc16()
264 rel >>= 2; /* because the offset is in _instructions_ not bytes. */ in apply_r_mips_pc16()
265 rel -= 1; /* and one instruction less due to the branch delay slot. */ in apply_r_mips_pc16()
267 if ((rel > 32768) || (rel < -32768)) { in apply_r_mips_pc16()
269 rel); in apply_r_mips_pc16()
273 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_pc16()
431 Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocations() local
438 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocations()
439 Elf32_Word r_info = rel[i].r_info; in apply_relocations()
443 + rel[i].r_offset; in apply_relocations()
460 rel[i].r_offset, r ? r : "UNKNOWN", in apply_relocations()
469 static inline void save_gp_address(unsigned int secbase, unsigned int rel) in save_gp_address() argument
471 gp_addr = secbase + rel; in save_gp_address()