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