Lines Matching refs:rshp
343 Shdr *shp, *rshp;
348 rshp = (Shdr *)
350 if (rshp->sh_type == SHT_REL) {
355 if (rshp->sh_type != SHT_RELA)
357 if (rshp->sh_link != mp->symtbl_section) {
362 if (rshp->sh_info >= mp->hdr.e_shnum) {
367 nreloc = rshp->sh_size / rshp->sh_entsize;
371 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize);
385 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type,
386 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
392 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
393 rshp->sh_addr = 0;
398 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
399 rshp->sh_addr = 0;