Lines Matching refs:rshp
288 Shdr *shp, *rshp; in do_relocations() local
293 rshp = (Shdr *) in do_relocations()
295 if (rshp->sh_type == SHT_REL) { in do_relocations()
300 if (rshp->sh_type != SHT_RELA) in do_relocations()
302 if (rshp->sh_link != mp->symtbl_section) { in do_relocations()
307 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
312 nreloc = rshp->sh_size / rshp->sh_entsize; in do_relocations()
316 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize); in do_relocations()
330 if (do_relocate(mp, (char *)rshp->sh_addr, nreloc, in do_relocations()
331 rshp->sh_entsize, shp->sh_addr) < 0) { in do_relocations()
337 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
338 rshp->sh_addr = 0; in do_relocations()
343 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
344 rshp->sh_addr = 0; in do_relocations()