X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fvms%2Flbr.h;h=08d19f216fc5ab27b809290f5be993e22636ace8;hb=31ce04e9e0ce96e752e2c53dfad5881d24e9f080;hp=7d6f597cb076f6a1a5359f55705ebc08d85ea50d;hpb=8e57e1d134f0cca20ca7b1dec0196090a32d5749;p=deliverable%2Fbinutils-gdb.git diff --git a/include/vms/lbr.h b/include/vms/lbr.h index 7d6f597cb0..08d19f216f 100644 --- a/include/vms/lbr.h +++ b/include/vms/lbr.h @@ -1,6 +1,6 @@ /* Alpha VMS external format of Libraries. - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2020 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. @@ -87,7 +87,10 @@ struct vms_lhd unsigned char nextvbn[4]; /* Free pre-allocated index block. */ + /* Number of free blocks. */ unsigned char freidxblk[4]; + /* VBN of a simply linked list of free blocks. The list is terminated by a + nul VBN. */ unsigned char freeidx[4]; /* Highest pre-allocated index block and in use. */ @@ -166,7 +169,7 @@ struct vms_indexdef unsigned char fill_1[6]; - /* The key field contains vms_idxdef/vms_idxdef2 structures, which are + /* The key field contains vms_idx/vms_elfidx structures, which are simply a key (= a string) and a rfa. */ unsigned char keys[INDEXDEF__BLKSIZ]; }; @@ -255,6 +258,19 @@ struct vms_datadef #define DATA__LENGTH 512 #define DATA__DATA 6 +/* Key name block. This is used for keys longer than 128 bytes. */ + +struct vms_kbn +{ + /* Length of the key chunk. */ + unsigned char keylen[2]; + + /* RFA of the next chunk. */ + struct vms_rfa rfa; + + /* Followed by the key chunk. */ +}; + /* Module header. */ struct vms_mhd { @@ -279,7 +295,9 @@ struct vms_mhd #define MHD__C_MHDID 0xad /* Value for id. */ #define MHD__C_MHDLEN 16 /* Fixed part length. */ #define MHD__C_USRDAT 16 -#define MHD__M_SELSRC 0x1 + +/* Flags for objstat. */ +#define MHD__M_SELSRC 0x1 /* Selective search. */ #define MHD__M_OBJTIR 0x2 #define MHD__M_WKSYM 0x4