esgps.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Alpha VMS external format of Extended Shared 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_ESGPS_H
  18. #define _VMS_ESGPS_H
  19. struct vms_esgps
  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. /* Image offset of the psect. */
  33. unsigned char base[4];
  34. /* Symbol vector offset. */
  35. unsigned char value[8];
  36. /* Name. */
  37. unsigned char namlng;
  38. unsigned char name[31];
  39. };
  40. /* These are the same as EGPS flags. */
  41. #define ESGPS__V_PIC (1 << 0) /* Not meaningful. */
  42. #define ESGPS__V_LIB (1 << 1) /* Defined in a shareable image. */
  43. #define ESGPS__V_OVR (1 << 2) /* Overlaid contribution. */
  44. #define ESGPS__V_REL (1 << 3) /* Relocatable. */
  45. #define ESGPS__V_GBL (1 << 4) /* Global. */
  46. #define ESGPS__V_SHR (1 << 5) /* Shareable. */
  47. #define ESGPS__V_EXE (1 << 6) /* Executable. */
  48. #define ESGPS__V_RD (1 << 7) /* Readable. */
  49. #define ESGPS__V_WRT (1 << 8) /* Writable. */
  50. #define ESGPS__V_VEC (1 << 9) /* Change mode dispatch or message vectors. */
  51. #define ESGPS__V_NOMOD (1 << 10) /* Demand-zero. */
  52. #define ESGPS__V_COM (1 << 11) /* Conditional storage. */
  53. #define ESGPS__V_ALLOC_64BIT (1 << 12) /* Allocated in 64-bit space. */
  54. #endif /* _VMS_ESGPS_H */