omfbase.pas 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. Copyright (c) 2015 by Nikolay Nikolov
  3. Contains Relocatable Object Module Format (OMF) definitions
  4. This is the object format used on the i8086-msdos platform.
  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 2 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., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit omfbase;
  19. {$i fpcdefs.inc}
  20. interface
  21. const
  22. { OMF record types }
  23. RT_THEADR = $80; { Translator Header Record }
  24. RT_LHEADR = $82; { Library Module Header Record }
  25. RT_COMENT = $88; { Comment Record }
  26. RT_MODEND = $8A; { Module End Record }
  27. RT_MODEND32 = $8B;
  28. RT_EXTDEF = $8C; { External Names Definition Record }
  29. RT_PUBDEF = $90; { Public Names Definition Record }
  30. RT_PUBDEF32 = $91;
  31. RT_LINNUM = $94; { Line Numbers Record }
  32. RT_LINNUM32 = $95;
  33. RT_LNAMES = $96; { List of Names Record }
  34. RT_SEGDEF = $98; { Segment Definition Record }
  35. RT_SEGDEF32 = $99;
  36. RT_GRPDEF = $9A; { Group Definition Record }
  37. RT_FIXUPP = $9C; { Fixup Record }
  38. RT_FIXUPP32 = $9D;
  39. RT_LEDATA = $A0; { Logical Enumerated Data Record }
  40. RT_LEDATA32 = $A1;
  41. RT_LIDATA = $A2; { Logical Iterated Data Record }
  42. RT_LIDATA32 = $A3;
  43. RT_COMDEF = $B0; { Communal Names Definition Record }
  44. RT_BAKPAT = $B2; { Backpatch Record }
  45. RT_BAKPAT32 = $B3;
  46. RT_LEXTDEF = $B4; { Local External Names Definition Record }
  47. RT_LEXTDEF32 = $B5;
  48. RT_LPUBDEF = $B6; { Local Public Names Definition Record }
  49. RT_LPUBDEF32 = $B7;
  50. RT_LCOMDEF = $B8; { Local Communal Names Definition Record }
  51. RT_CEXTDEF = $BC; { COMDAT External Names Definition Record }
  52. RT_COMDAT = $C2; { Initialized Communal Data Record }
  53. RT_COMDAT32 = $C3;
  54. RT_LINSYM = $C4; { Symbol Line Numbers Record }
  55. RT_LINSYM32 = $C5;
  56. RT_ALIAS = $C6; { Alias Definition Record }
  57. RT_NBKPAT = $C8; { Named Backpatch Record }
  58. RT_NBKPAT32 = $C9;
  59. RT_LLNAMES = $CA; { Local Logical Names Definition Record }
  60. RT_VERNUM = $CC; { OMF Version Number Record }
  61. RT_VENDEXT = $CE; { Vendor-specific OMF Extension Record }
  62. implementation
  63. end.