egsd.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Alpha VMS external format of Extended Global Symbol Directory.
  2. Copyright (C) 2010-2015 Free Software Foundation, Inc.
  3. Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
  4. This file is part of BFD, the Binary File Descriptor library.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  16. MA 02110-1301, USA. */
  17. #ifndef _VMS_EGSD_H
  18. #define _VMS_EGSD_H
  19. #define EGSD__K_ENTRIES 2 /* Offset to first entry in record. */
  20. #define EGSD__C_ENTRIES 2 /* Offset to first entry in record. */
  21. #define EGSD__C_PSC 0 /* Psect definition. */
  22. #define EGSD__C_SYM 1 /* Symbol specification. */
  23. #define EGSD__C_IDC 2 /* Random entity check. */
  24. #define EGSD__C_SPSC 5 /* Shareable image psect definition. */
  25. #define EGSD__C_SYMV 6 /* Vectored (dual-valued) versions of SYM. */
  26. #define EGSD__C_SYMM 7 /* Masked versions of SYM. */
  27. #define EGSD__C_SYMG 8 /* EGST - gst version of SYM. */
  28. #define EGSD__C_MAXRECTYP 8 /* Maximum entry type defined. */
  29. struct vms_egsd
  30. {
  31. /* Record type. */
  32. unsigned char rectyp[2];
  33. /* Record size. */
  34. unsigned char recsiz[2];
  35. /* Padding for alignment. */
  36. unsigned char alignlw[4];
  37. /* Followed by egsd entries. */
  38. };
  39. struct vms_egsd_entry
  40. {
  41. /* Entry type. */
  42. unsigned char gsdtyp[2];
  43. /* Length of the entry. */
  44. unsigned char gsdsiz[2];
  45. };
  46. #endif /* _VMS_EGSD_H */