i_sunos.pas 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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_smartlink_library,tf_has_winlike_resources];
  32. cpu : cpu_i386;
  33. unit_env : 'SOLARISUNITS';
  34. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  35. exeext : '';
  36. defext : '.def';
  37. scriptext : '.sh';
  38. smartext : '.sl';
  39. unitext : '.ppu';
  40. unitlibext : '.ppl';
  41. asmext : '.s';
  42. objext : '.o';
  43. resext : '.res';
  44. resobjext : '.or';
  45. sharedlibext : '.so';
  46. staticlibext : '.a';
  47. staticlibprefix : 'libp';
  48. sharedlibprefix : 'lib';
  49. sharedClibext : '.so';
  50. staticClibext : '.a';
  51. staticClibprefix : 'lib';
  52. sharedClibprefix : 'lib';
  53. importlibprefix : 'libimp';
  54. importlibext : '.a';
  55. Cprefix : '';
  56. newline : #10;
  57. dirsep : '/';
  58. assem : as_i386_elf32;
  59. assemextern : as_ggas;
  60. link : ld_none;
  61. linkextern : ld_solaris;
  62. ar : ar_gnu_gar;
  63. res : res_elf;
  64. dbg : dbg_stabs;
  65. script : script_unix;
  66. endian : endian_little;
  67. alignment :
  68. (
  69. procalign : 16;
  70. loopalign : 4;
  71. jumpalign : 0;
  72. constalignmin : 0;
  73. constalignmax : 8;
  74. varalignmin : 0;
  75. varalignmax : 16;
  76. localalignmin : 4;
  77. localalignmax : 8;
  78. recordalignmin : 0;
  79. recordalignmax : 16;
  80. maxCrecordalign : 4
  81. );
  82. first_parm_offset : 8;
  83. stacksize : 262144;
  84. stackalign : 4;
  85. abi : abi_default;
  86. { note: default LLVM stack alignment is 16 bytes for this target }
  87. llvmdatalayout : 'e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32';
  88. );
  89. system_x86_64_solaris_info : tsysteminfo =
  90. (
  91. system : system_x86_64_solaris;
  92. name : 'Solaris for x86-64';
  93. shortname : 'solaris';
  94. flags : [tf_needs_symbol_size,tf_needs_symbol_type,
  95. tf_under_development,
  96. tf_files_case_sensitive,
  97. tf_requires_proper_alignment,tf_smartlink_library,tf_library_needs_pic,
  98. tf_has_winlike_resources];
  99. cpu : cpu_x86_64;
  100. unit_env : 'SOLARISUNITS';
  101. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  102. exeext : '';
  103. defext : '.def';
  104. scriptext : '.sh';
  105. smartext : '.sl';
  106. unitext : '.ppu';
  107. unitlibext : '.ppl';
  108. asmext : '.s';
  109. objext : '.o';
  110. resext : '.res';
  111. resobjext : '.or';
  112. sharedlibext : '.so';
  113. staticlibext : '.a';
  114. staticlibprefix : 'libp';
  115. sharedlibprefix : 'lib';
  116. sharedClibext : '.so';
  117. staticClibext : '.a';
  118. staticClibprefix : 'lib';
  119. sharedClibprefix : 'lib';
  120. importlibprefix : 'libimp';
  121. importlibext : '.a';
  122. Cprefix : '';
  123. newline : #10;
  124. dirsep : '/';
  125. assem : as_ggas{as_x86_64_elf64};
  126. assemextern : as_ggas;
  127. link : ld_none;
  128. linkextern : ld_solaris;
  129. ar : ar_gnu_ar;
  130. res : res_elf;
  131. dbg : dbg_dwarf2;
  132. script : script_unix;
  133. endian : endian_little;
  134. alignment :
  135. (
  136. procalign : 8;
  137. loopalign : 4;
  138. jumpalign : 0;
  139. constalignmin : 0;
  140. constalignmax : 8;
  141. varalignmin : 0;
  142. varalignmax : 16;
  143. localalignmin : 4;
  144. localalignmax : 16;
  145. recordalignmin : 0;
  146. recordalignmax : 16;
  147. maxCrecordalign : 16
  148. );
  149. first_parm_offset : 16;
  150. stacksize : 8*1024*1024;
  151. stackalign : 16;
  152. abi : abi_default;
  153. llvmdatalayout : 'e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128';
  154. );
  155. system_sparc_solaris_info : tsysteminfo =
  156. (
  157. system : system_sparc_solaris;
  158. name : 'Solaris for SPARC';
  159. shortname : 'solaris';
  160. flags : [tf_needs_symbol_size,tf_under_development,
  161. tf_files_case_sensitive,
  162. tf_pic_uses_got,
  163. tf_requires_proper_alignment,tf_smartlink_library,
  164. tf_has_winlike_resources];
  165. cpu : cpu_SPARC;
  166. unit_env : 'SOLARISUNITS';
  167. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  168. exeext : '';
  169. defext : '.def';
  170. scriptext : '.sh';
  171. smartext : '.sl';
  172. unitext : '.ppu';
  173. unitlibext : '.ppl';
  174. asmext : '.s';
  175. objext : '.o';
  176. resext : '.res';
  177. resobjext : '.or';
  178. sharedlibext : '.so';
  179. staticlibext : '.a';
  180. staticlibprefix : 'libp';
  181. sharedlibprefix : 'lib';
  182. sharedClibext : '.so';
  183. staticClibext : '.a';
  184. staticClibprefix : 'lib';
  185. sharedClibprefix : 'lib';
  186. importlibprefix : 'libimp';
  187. importlibext : '.a';
  188. Cprefix : '';
  189. newline : #10;
  190. dirsep : '/';
  191. assem : as_ggas;
  192. assemextern : as_ggas;
  193. link : ld_none;
  194. linkextern : ld_solaris;
  195. ar : ar_gnu_gar;
  196. res : res_elf;
  197. dbg : dbg_stabs;
  198. script : script_unix;
  199. endian : endian_big;
  200. alignment :
  201. (
  202. procalign : 4;
  203. loopalign : 4;
  204. jumpalign : 0;
  205. constalignmin : 4;
  206. constalignmax : 8;
  207. varalignmin : 4;
  208. varalignmax : 8;
  209. localalignmin : 4;
  210. localalignmax : 8;
  211. recordalignmin : 0;
  212. recordalignmax : 8;
  213. maxCrecordalign : 8
  214. );
  215. first_parm_offset : 92;
  216. stacksize : 262144;
  217. stackalign : 8;
  218. abi : abi_default;
  219. llvmdatalayout : 'E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64';
  220. );
  221. implementation
  222. initialization
  223. {$ifdef CPUI386}
  224. {$ifdef solaris}
  225. set_source_info(system_i386_solaris_info);
  226. {$endif solaris}
  227. {$endif CPUI386}
  228. {$ifdef CPUX86_64}
  229. {$ifdef solaris}
  230. set_source_info(system_x86_64_solaris_info);
  231. {$endif solaris}
  232. {$endif CPUX86_64}
  233. {$ifdef CPUSparc}
  234. {$ifdef solaris}
  235. set_source_info(system_sparc_solaris_info);
  236. {$endif solaris}
  237. {$endif CPUSparc}
  238. end.