egps.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Alpha VMS external format of Extended Program Section Definition.
  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_EGPS_H
  18. #define _VMS_EGPS_H
  19. struct vms_egps
  20. {
  21. /* Entry type. */
  22. unsigned char gsdtyp[2];
  23. /* Length of the entry. */
  24. unsigned char gsdsiz[2];
  25. /* Psect alignment. */
  26. unsigned char align;
  27. /* Pad for alignment. */
  28. unsigned char temp;
  29. unsigned char flags[2];
  30. /* Length of this contribution. */
  31. unsigned char alloc[4];
  32. /* Name. */
  33. unsigned char namlng;
  34. unsigned char name[31];
  35. };
  36. #define EGPS__V_PIC (1 << 0) /* Not meaningful. */
  37. #define EGPS__V_LIB (1 << 1) /* Defined in a shareable image. */
  38. #define EGPS__V_OVR (1 << 2) /* Overlaid contribution. */
  39. #define EGPS__V_REL (1 << 3) /* Relocatable. */
  40. #define EGPS__V_GBL (1 << 4) /* Global. */
  41. #define EGPS__V_SHR (1 << 5) /* Shareable. */
  42. #define EGPS__V_EXE (1 << 6) /* Executable. */
  43. #define EGPS__V_RD (1 << 7) /* Readable. */
  44. #define EGPS__V_WRT (1 << 8) /* Writable. */
  45. #define EGPS__V_VEC (1 << 9) /* Change mode dispatch or message vectors. */
  46. #define EGPS__V_NOMOD (1 << 10) /* Demand-zero. */
  47. #define EGPS__V_COM (1 << 11) /* Conditional storage. */
  48. #define EGPS__V_ALLOC_64BIT (1 << 12) /* Allocated in 64-bit space. */
  49. #endif /* _VMS_EGPS_H */