Lines Matching refs:rshp
278 Shdr *shp, *rshp;
283 rshp = (Shdr *)
285 if (rshp->sh_type == SHT_RELA) {
290 if (rshp->sh_type != SHT_REL)
292 if (rshp->sh_link != mp->symtbl_section) {
297 if (rshp->sh_info >= mp->hdr.e_shnum) {
303 nreloc = rshp->sh_size / rshp->sh_entsize;
307 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize);
323 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type,
324 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
330 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
331 rshp->sh_addr = 0;
336 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
337 rshp->sh_addr = 0;