emh.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* Alpha VMS external format of Extended Module Header.
  2. Copyright (C) 2010-2022 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_EMH_H
  18. #define _VMS_EMH_H
  19. #define EMH__C_MHD 0 /* Main header record. */
  20. #define EMH__C_LNM 1 /* Language name and version. */
  21. #define EMH__C_SRC 2 /* Source file specification. */
  22. #define EMH__C_TTL 3 /* Title text of module. */
  23. #define EMH__C_CPR 4 /* Copyright notice. */
  24. #define EMH__C_MTC 5 /* Maintenance status. */
  25. #define EMH__C_GTX 6 /* General text. */
  26. #define EMH__C_MAXHDRTYP 6 /* Maximum allowable type. */
  27. struct vms_emh_common
  28. {
  29. /* Record type. */
  30. unsigned char rectyp[2];
  31. /* Record size. */
  32. unsigned char size[2];
  33. /* Subtype. */
  34. unsigned char subtyp[2];
  35. };
  36. struct vms_emh_mhd
  37. {
  38. struct vms_emh_common common;
  39. unsigned char strlvl;
  40. unsigned char temp;
  41. unsigned char arch1[4];
  42. unsigned char arch2[4];
  43. unsigned char recsiz[4];
  44. /* Module name: ASCIC. */
  45. /* Module version: ASCIC. */
  46. /* Compile data: ASCIC. */
  47. };
  48. #define EOBJ__C_MAXRECSIZ 8192 /* Maximum legal record size. */
  49. #define EOBJ__C_STRLVL 2 /* Structure level. */
  50. #define EOBJ__C_SYMSIZ 64 /* Maximum symbol length. */
  51. #define EOBJ__C_SECSIZ 31 /* Maximum section name length. */
  52. #define EOBJ__C_STOREPLIM -1 /* Maximum repeat count on store commands. */
  53. #define EOBJ__C_PSCALILIM 16 /* Maximum p-sect alignment. */
  54. struct vms_emh_lnm
  55. {
  56. struct vms_emh_common common;
  57. /* Language processor name: ASCII. */
  58. };
  59. #endif /* _VMS_EMH_H */