Lines Matching refs:rshp
297 Shdr *shp, *rshp; in do_relocations() local
302 rshp = (Shdr *) in do_relocations()
304 if (rshp->sh_type == SHT_REL) { in do_relocations()
309 if (rshp->sh_type != SHT_RELA) in do_relocations()
311 if (rshp->sh_link != mp->symtbl_section) { in do_relocations()
316 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
322 nreloc = rshp->sh_size / rshp->sh_entsize; in do_relocations()
326 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize); in do_relocations()
342 if (do_relocate(mp, (char *)rshp->sh_addr, nreloc, in do_relocations()
343 rshp->sh_entsize, shp->sh_addr) < 0) { in do_relocations()
349 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
350 rshp->sh_addr = 0; in do_relocations()
355 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
356 rshp->sh_addr = 0; in do_relocations()