/* Alpha VMS external format of Libraries.
- Copyright 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010-2019 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
This file is part of BFD, the Binary File Descriptor library.
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. */
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];
};
#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
{
#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