Lines Matching refs:lhd
444 struct vms_lhd lhd; in _bfd_vms_lib_archive_p() local
453 if (bfd_bread (&lhd, sizeof (lhd), abfd) != sizeof (lhd)) in _bfd_vms_lib_archive_p()
461 sanity = bfd_getl32 (lhd.sanity); in _bfd_vms_lib_archive_p()
469 majorid = bfd_getl32 (lhd.majorid); in _bfd_vms_lib_archive_p()
475 if ((lhd.type != LBR__C_TYP_EOBJ && lhd.type != LBR__C_TYP_ESHSTB) in _bfd_vms_lib_archive_p()
477 || lhd.nindex != 2) in _bfd_vms_lib_archive_p()
484 if ((lhd.type != LBR__C_TYP_IOBJ && lhd.type != LBR__C_TYP_ISHSTB) in _bfd_vms_lib_archive_p()
486 || lhd.nindex != 2) in _bfd_vms_lib_archive_p()
493 if ((lhd.type != LBR__C_TYP_TXT in _bfd_vms_lib_archive_p()
494 && lhd.type != LBR__C_TYP_MLB in _bfd_vms_lib_archive_p()
495 && lhd.type != LBR__C_TYP_HLP) in _bfd_vms_lib_archive_p()
497 || lhd.nindex != 1) in _bfd_vms_lib_archive_p()
514 tdata->mhd_size = MHD__C_USRDAT + lhd.mhdusz; in _bfd_vms_lib_archive_p()
515 tdata->type = lhd.type; in _bfd_vms_lib_archive_p()
517 tdata->credat_lo = bfd_getl32 (lhd.credat + 0); in _bfd_vms_lib_archive_p()
518 tdata->credat_hi = bfd_getl32 (lhd.credat + 4); in _bfd_vms_lib_archive_p()
521 tdata->nbr_modules = bfd_getl32 (lhd.modcnt); in _bfd_vms_lib_archive_p()
522 tdata->artdata.symdef_count = bfd_getl32 (lhd.idxcnt) - tdata->nbr_modules; in _bfd_vms_lib_archive_p()
527 if (lhd.nindex == 2) in _bfd_vms_lib_archive_p()
545 dcxvbn = bfd_getl32 (lhd.dcxmapvbn); in _bfd_vms_lib_archive_p()
2235 struct vms_lhd *lhd = (struct vms_lhd *)blk; in _bfd_vms_lib_write_archive_contents() local
2236 struct vms_idd *idd = (struct vms_idd *)(blk + sizeof (*lhd)); in _bfd_vms_lib_write_archive_contents()
2242 lhd->type = tdata->type; in _bfd_vms_lib_write_archive_contents()
2243 lhd->nindex = 2; in _bfd_vms_lib_write_archive_contents()
2255 bfd_putl32 (saneid, lhd->sanity); in _bfd_vms_lib_write_archive_contents()
2256 bfd_putl16 (tdata->ver, lhd->majorid); in _bfd_vms_lib_write_archive_contents()
2257 bfd_putl16 (0, lhd->minorid); in _bfd_vms_lib_write_archive_contents()
2258 snprintf ((char *)lhd->lbrver + 1, sizeof (lhd->lbrver) - 1, in _bfd_vms_lib_write_archive_contents()
2263 lhd->lbrver[sizeof (lhd->lbrver) - 1] = 0; in _bfd_vms_lib_write_archive_contents()
2264 lhd->lbrver[0] = strlen ((char *)lhd->lbrver + 1); in _bfd_vms_lib_write_archive_contents()
2266 bfd_putl32 (tdata->credat_lo, lhd->credat + 0); in _bfd_vms_lib_write_archive_contents()
2267 bfd_putl32 (tdata->credat_hi, lhd->credat + 4); in _bfd_vms_lib_write_archive_contents()
2268 vms_raw_get_time (lhd->updtim); in _bfd_vms_lib_write_archive_contents()
2270 lhd->mhdusz = tdata->mhd_size - MHD__C_USRDAT; in _bfd_vms_lib_write_archive_contents()
2272 bfd_putl32 (nbr_modules + nbr_symbols, lhd->idxcnt); in _bfd_vms_lib_write_archive_contents()
2273 bfd_putl32 (nbr_modules, lhd->modcnt); in _bfd_vms_lib_write_archive_contents()
2274 bfd_putl32 (nbr_modules, lhd->modhdrs); in _bfd_vms_lib_write_archive_contents()
2277 bfd_putl32 (nbr_mod_iblk + nbr_sym_iblk, lhd->idxblks); in _bfd_vms_lib_write_archive_contents()
2278 bfd_putl32 (vbn - 1, lhd->hipreal); in _bfd_vms_lib_write_archive_contents()
2279 bfd_putl32 (vbn - 1, lhd->hiprusd); in _bfd_vms_lib_write_archive_contents()
2282 bfd_putl32 ((off / VMS_BLOCK_SIZE) + 1, lhd->nextvbn); in _bfd_vms_lib_write_archive_contents()
2283 bfd_putl32 ((off / VMS_BLOCK_SIZE) + 1, lhd->nextrfa + 0); in _bfd_vms_lib_write_archive_contents()
2284 bfd_putl16 (0, lhd->nextrfa + 4); in _bfd_vms_lib_write_archive_contents()