Lines Matching refs:rshp
284 Shdr *shp, *rshp;
289 rshp = (Shdr *)
291 if (rshp->sh_type == SHT_REL) {
296 if (rshp->sh_type != SHT_RELA)
298 if (rshp->sh_link != mp->symtbl_section) {
303 if (rshp->sh_info >= mp->hdr.e_shnum) {
309 nreloc = rshp->sh_size / rshp->sh_entsize;
313 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize);
329 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type,
330 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
336 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
337 rshp->sh_addr = 0;
342 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
343 rshp->sh_addr = 0;