Lines Matching refs:lhd
500 struct vms_lhd lhd;
509 if (bfd_read (&lhd, sizeof (lhd), abfd) != sizeof (lhd))
517 sanity = bfd_getl32 (lhd.sanity);
525 majorid = bfd_getl32 (lhd.majorid);
531 if ((lhd.type != LBR__C_TYP_EOBJ && lhd.type != LBR__C_TYP_ESHSTB)
533 || lhd.nindex != 2)
540 if ((lhd.type != LBR__C_TYP_IOBJ && lhd.type != LBR__C_TYP_ISHSTB)
542 || lhd.nindex != 2)
549 if ((lhd.type != LBR__C_TYP_TXT
550 && lhd.type != LBR__C_TYP_MLB
551 && lhd.type != LBR__C_TYP_HLP)
553 || lhd.nindex != 1)
570 tdata->mhd_size = MHD__C_USRDAT + lhd.mhdusz;
571 tdata->type = lhd.type;
573 tdata->credat_lo = bfd_getl32 (lhd.credat + 0);
574 tdata->credat_hi = bfd_getl32 (lhd.credat + 4);
577 tdata->nbr_modules = bfd_getl32 (lhd.modcnt);
578 tdata->artdata.symdef_count = bfd_getl32 (lhd.idxcnt) - tdata->nbr_modules;
583 if (lhd.nindex == 2)
601 dcxvbn = bfd_getl32 (lhd.dcxmapvbn);
2329 struct vms_lhd *lhd = (struct vms_lhd *)blk;
2330 struct vms_idd *idd = (struct vms_idd *)(blk + sizeof (*lhd));
2336 lhd->type = tdata->type;
2337 lhd->nindex = 2;
2349 bfd_putl32 (saneid, lhd->sanity);
2350 bfd_putl16 (tdata->ver, lhd->majorid);
2351 bfd_putl16 (0, lhd->minorid);
2352 snprintf ((char *)lhd->lbrver + 1, sizeof (lhd->lbrver) - 1,
2357 lhd->lbrver[sizeof (lhd->lbrver) - 1] = 0;
2358 lhd->lbrver[0] = strlen ((char *)lhd->lbrver + 1);
2360 bfd_putl32 (tdata->credat_lo, lhd->credat + 0);
2361 bfd_putl32 (tdata->credat_hi, lhd->credat + 4);
2362 vms_raw_get_time (lhd->updtim);
2364 lhd->mhdusz = tdata->mhd_size - MHD__C_USRDAT;
2366 bfd_putl32 (nbr_modules + nbr_symbols, lhd->idxcnt);
2367 bfd_putl32 (nbr_modules, lhd->modcnt);
2368 bfd_putl32 (nbr_modules, lhd->modhdrs);
2371 bfd_putl32 (nbr_mod_iblk + nbr_sym_iblk, lhd->idxblks);
2372 bfd_putl32 (vbn - 1, lhd->hipreal);
2373 bfd_putl32 (vbn - 1, lhd->hiprusd);
2376 bfd_putl32 ((off / VMS_BLOCK_SIZE) + 1, lhd->nextvbn);
2377 bfd_putl32 ((off / VMS_BLOCK_SIZE) + 1, lhd->nextrfa + 0);
2378 bfd_putl16 (0, lhd->nextrfa + 4);