internal.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Alpha VMS internal format.
  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_INTERNAL_H
  18. #define _VMS_INTERNAL_H
  19. struct vms_internal_eisd
  20. {
  21. unsigned int majorid; /* Version. */
  22. unsigned int minorid;
  23. unsigned int eisdsize; /* Size (in bytes) of this eisd. */
  24. unsigned int secsize; /* Size (in bytes) of the section. */
  25. bfd_vma virt_addr; /* Virtual address of the section. */
  26. unsigned int flags; /* Flags. */
  27. unsigned int vbn; /* Base virtual block number. */
  28. unsigned char pfc; /* Page fault cluster. */
  29. unsigned char matchctl; /* Linker match control. */
  30. unsigned char type; /* Section type. */
  31. };
  32. struct vms_internal_gbl_eisd
  33. {
  34. struct vms_internal_eisd common;
  35. unsigned int ident; /* Ident for global section. */
  36. unsigned char gblnam[44]; /* Global name ascic. */
  37. };
  38. struct vms_internal_eisd_map
  39. {
  40. /* Next eisd in the list. */
  41. struct vms_internal_eisd_map *next;
  42. /* Offset in output file. */
  43. file_ptr file_pos;
  44. union
  45. {
  46. struct vms_internal_eisd eisd;
  47. struct vms_internal_gbl_eisd gbl_eisd;
  48. } u;
  49. };
  50. #endif /* _VMS_INTERNAL_H */