Lines Matching full:rel
236 int rel; in apply_r_mips_gprel16() local
239 rel = (int)v - gp_addr; in apply_r_mips_gprel16()
243 rel = (int)(short)((int)v + gp_offs + in apply_r_mips_gprel16()
247 if ((rel > 32768) || (rel < -32768)) { in apply_r_mips_gprel16()
249 rel); in apply_r_mips_gprel16()
253 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_gprel16()
261 int rel; in apply_r_mips_pc16() local
262 rel = (((unsigned int)v - (unsigned int)location)); in apply_r_mips_pc16()
263 rel >>= 2; /* because the offset is in _instructions_ not bytes. */ in apply_r_mips_pc16()
264 rel -= 1; /* and one instruction less due to the branch delay slot. */ in apply_r_mips_pc16()
266 if ((rel > 32768) || (rel < -32768)) { in apply_r_mips_pc16()
268 rel); in apply_r_mips_pc16()
272 *location = (*location & 0xffff0000) | (rel & 0xffff); in apply_r_mips_pc16()
430 Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocations() local
437 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocations()
438 Elf32_Word r_info = rel[i].r_info; in apply_relocations()
442 + rel[i].r_offset; in apply_relocations()
459 rel[i].r_offset, r ? r : "UNKNOWN", in apply_relocations()
468 static inline void save_gp_address(unsigned int secbase, unsigned int rel) in save_gp_address() argument
470 gp_addr = secbase + rel; in save_gp_address()