i_sunos.pas 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. {
  2. Copyright (c) 1998-2008 by Peter Vreman
  3. This unit implements support information structures for solaris
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements support information structures for solaris. }
  18. unit i_sunos;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_i386_solaris_info : tsysteminfo =
  25. (
  26. system : system_i386_solaris;
  27. name : 'Solaris for i386';
  28. shortname : 'solaris';
  29. flags : [tf_under_development,tf_needs_symbol_size,
  30. tf_files_case_sensitive,tf_requires_proper_alignment,
  31. tf_pic_uses_got,tf_library_needs_pic,
  32. tf_smartlink_library,tf_has_winlike_resources];
  33. cpu : cpu_i386;
  34. unit_env : 'SOLARISUNITS';
  35. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  36. exeext : '';
  37. defext : '.def';
  38. scriptext : '.sh';
  39. smartext : '.sl';
  40. unitext : '.ppu';
  41. unitlibext : '.ppl';
  42. asmext : '.s';
  43. objext : '.o';
  44. resext : '.res';
  45. resobjext : '.or';
  46. sharedlibext : '.so';
  47. staticlibext : '.a';
  48. staticlibprefix : 'libp';
  49. sharedlibprefix : 'lib';
  50. sharedClibext : '.so';
  51. staticClibext : '.a';
  52. staticClibprefix : 'lib';
  53. sharedClibprefix : 'lib';
  54. importlibprefix : 'libimp';
  55. importlibext : '.a';
  56. Cprefix : '';
  57. newline : #10;
  58. dirsep : '/';
  59. assem : as_i386_elf32;
  60. assemextern : as_ggas;
  61. link : ld_none;
  62. linkextern : ld_solaris;
  63. ar : ar_gnu_gar;
  64. res : res_elf;
  65. dbg : dbg_stabs;
  66. script : script_unix;
  67. endian : endian_little;
  68. alignment :
  69. (
  70. procalign : 16;
  71. loopalign : 4;
  72. jumpalign : 0;
  73. constalignmin : 0;
  74. constalignmax : 8;
  75. varalignmin : 0;
  76. varalignmax : 16;
  77. localalignmin : 4;
  78. localalignmax : 8;
  79. recordalignmin : 0;
  80. recordalignmax : 16;
  81. maxCrecordalign : 4
  82. );
  83. first_parm_offset : 8;
  84. stacksize : 262144;
  85. stackalign : 4;
  86. abi : abi_default;
  87. );
  88. system_x86_64_solaris_info : tsysteminfo =
  89. (
  90. system : system_x86_64_solaris;
  91. name : 'Solaris for x86-64';
  92. shortname : 'solaris';
  93. flags : [tf_needs_symbol_size,tf_needs_symbol_type,
  94. tf_under_development,
  95. tf_files_case_sensitive,
  96. tf_requires_proper_alignment,tf_smartlink_library,tf_library_needs_pic,
  97. tf_has_winlike_resources];
  98. cpu : cpu_x86_64;
  99. unit_env : 'SOLARISUNITS';
  100. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  101. exeext : '';
  102. defext : '.def';
  103. scriptext : '.sh';
  104. smartext : '.sl';
  105. unitext : '.ppu';
  106. unitlibext : '.ppl';
  107. asmext : '.s';
  108. objext : '.o';
  109. resext : '.res';
  110. resobjext : '.or';
  111. sharedlibext : '.so';
  112. staticlibext : '.a';
  113. staticlibprefix : 'libp';
  114. sharedlibprefix : 'lib';
  115. sharedClibext : '.so';
  116. staticClibext : '.a';
  117. staticClibprefix : 'lib';
  118. sharedClibprefix : 'lib';
  119. importlibprefix : 'libimp';
  120. importlibext : '.a';
  121. Cprefix : '';
  122. newline : #10;
  123. dirsep : '/';
  124. assem : as_ggas{as_x86_64_elf64};
  125. assemextern : as_ggas;
  126. link : ld_none;
  127. linkextern : ld_solaris;
  128. ar : ar_gnu_gar;
  129. res : res_elf;
  130. dbg : dbg_dwarf2;
  131. script : script_unix;
  132. endian : endian_little;
  133. alignment :
  134. (
  135. procalign : 8;
  136. loopalign : 4;
  137. jumpalign : 0;
  138. constalignmin : 0;
  139. constalignmax : 8;
  140. varalignmin : 0;
  141. varalignmax : 16;
  142. localalignmin : 4;
  143. localalignmax : 16;
  144. recordalignmin : 0;
  145. recordalignmax : 16;
  146. maxCrecordalign : 16
  147. );
  148. first_parm_offset : 16;
  149. stacksize : 8*1024*1024;
  150. stackalign : 16;
  151. abi : abi_default
  152. );
  153. system_sparc_solaris_info : tsysteminfo =
  154. (
  155. system : system_sparc_solaris;
  156. name : 'Solaris for SPARC';
  157. shortname : 'solaris';
  158. flags : [tf_needs_symbol_size,tf_under_development,
  159. tf_files_case_sensitive,
  160. tf_pic_uses_got,
  161. tf_requires_proper_alignment,tf_smartlink_library,
  162. tf_has_winlike_resources];
  163. cpu : cpu_SPARC;
  164. unit_env : 'SOLARISUNITS';
  165. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  166. exeext : '';
  167. defext : '.def';
  168. scriptext : '.sh';
  169. smartext : '.sl';
  170. unitext : '.ppu';
  171. unitlibext : '.ppl';
  172. asmext : '.s';
  173. objext : '.o';
  174. resext : '.res';
  175. resobjext : '.or';
  176. sharedlibext : '.so';
  177. staticlibext : '.a';
  178. staticlibprefix : 'libp';
  179. sharedlibprefix : 'lib';
  180. sharedClibext : '.so';
  181. staticClibext : '.a';
  182. staticClibprefix : 'lib';
  183. sharedClibprefix : 'lib';
  184. importlibprefix : 'libimp';
  185. importlibext : '.a';
  186. Cprefix : '';
  187. newline : #10;
  188. dirsep : '/';
  189. assem : as_ggas;
  190. assemextern : as_ggas;
  191. link : ld_none;
  192. linkextern : ld_solaris;
  193. ar : ar_gnu_gar;
  194. res : res_elf;
  195. dbg : dbg_stabs;
  196. script : script_unix;
  197. endian : endian_big;
  198. alignment :
  199. (
  200. procalign : 4;
  201. loopalign : 4;
  202. jumpalign : 0;
  203. constalignmin : 4;
  204. constalignmax : 8;
  205. varalignmin : 4;
  206. varalignmax : 8;
  207. localalignmin : 4;
  208. localalignmax : 8;
  209. recordalignmin : 0;
  210. recordalignmax : 8;
  211. maxCrecordalign : 8
  212. );
  213. first_parm_offset : 92;
  214. stacksize : 262144;
  215. stackalign : 8;
  216. abi : abi_default;
  217. );
  218. implementation
  219. initialization
  220. {$ifdef CPUI386}
  221. {$ifdef solaris}
  222. set_source_info(system_i386_solaris_info);
  223. {$endif solaris}
  224. {$endif CPUI386}
  225. {$ifdef CPUX86_64}
  226. {$ifdef solaris}
  227. set_source_info(system_x86_64_solaris_info);
  228. {$endif solaris}
  229. {$endif CPUX86_64}
  230. {$ifdef CPUSparc}
  231. {$ifdef solaris}
  232. set_source_info(system_sparc_solaris_info);
  233. {$endif solaris}
  234. {$endif CPUSparc}
  235. end.