i_sunos.pas 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. jumpalignskipmax : 0;
  74. coalescealign : 0;
  75. coalescealignskipmax: 0;
  76. constalignmin : 0;
  77. constalignmax : 16;
  78. varalignmin : 0;
  79. varalignmax : 16;
  80. localalignmin : 4;
  81. localalignmax : 8;
  82. recordalignmin : 0;
  83. recordalignmax : 16;
  84. maxCrecordalign : 4
  85. );
  86. first_parm_offset : 8;
  87. stacksize : 262144;
  88. stackalign : 4;
  89. abi : abi_default;
  90. { note: default LLVM stack alignment is 16 bytes for this target }
  91. 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';
  92. );
  93. system_x86_64_solaris_info : tsysteminfo =
  94. (
  95. system : system_x86_64_solaris;
  96. name : 'Solaris for x86-64';
  97. shortname : 'solaris';
  98. flags : [tf_needs_symbol_size,tf_needs_symbol_type,
  99. tf_under_development,
  100. tf_files_case_sensitive,
  101. tf_requires_proper_alignment,tf_smartlink_library,tf_library_needs_pic,
  102. tf_has_winlike_resources];
  103. cpu : cpu_x86_64;
  104. unit_env : 'SOLARISUNITS';
  105. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  106. exeext : '';
  107. defext : '.def';
  108. scriptext : '.sh';
  109. smartext : '.sl';
  110. unitext : '.ppu';
  111. unitlibext : '.ppl';
  112. asmext : '.s';
  113. objext : '.o';
  114. resext : '.res';
  115. resobjext : '.or';
  116. sharedlibext : '.so';
  117. staticlibext : '.a';
  118. staticlibprefix : 'libp';
  119. sharedlibprefix : 'lib';
  120. sharedClibext : '.so';
  121. staticClibext : '.a';
  122. staticClibprefix : 'lib';
  123. sharedClibprefix : 'lib';
  124. importlibprefix : 'libimp';
  125. importlibext : '.a';
  126. Cprefix : '';
  127. newline : #10;
  128. dirsep : '/';
  129. assem : as_x86_64_elf64;
  130. assemextern : as_ggas;
  131. link : ld_none;
  132. linkextern : ld_solaris;
  133. ar : ar_gnu_gar;
  134. res : res_elf;
  135. dbg : dbg_dwarf2;
  136. script : script_unix;
  137. endian : endian_little;
  138. alignment :
  139. (
  140. procalign : 8;
  141. loopalign : 4;
  142. jumpalign : 0;
  143. jumpalignskipmax : 0;
  144. coalescealign : 0;
  145. coalescealignskipmax: 0;
  146. constalignmin : 0;
  147. constalignmax : 16;
  148. varalignmin : 0;
  149. varalignmax : 16;
  150. localalignmin : 4;
  151. localalignmax : 16;
  152. recordalignmin : 0;
  153. recordalignmax : 16;
  154. maxCrecordalign : 16
  155. );
  156. first_parm_offset : 16;
  157. stacksize : 8*1024*1024;
  158. stackalign : 16;
  159. abi : abi_default;
  160. 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';
  161. );
  162. system_sparc_solaris_info : tsysteminfo =
  163. (
  164. system : system_sparc_solaris;
  165. name : 'Solaris for SPARC';
  166. shortname : 'solaris';
  167. flags : [tf_needs_symbol_size,tf_under_development,
  168. tf_files_case_sensitive,
  169. tf_pic_uses_got,
  170. tf_requires_proper_alignment,tf_smartlink_library,
  171. tf_has_winlike_resources];
  172. cpu : cpu_SPARC;
  173. unit_env : 'SOLARISUNITS';
  174. extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
  175. exeext : '';
  176. defext : '.def';
  177. scriptext : '.sh';
  178. smartext : '.sl';
  179. unitext : '.ppu';
  180. unitlibext : '.ppl';
  181. asmext : '.s';
  182. objext : '.o';
  183. resext : '.res';
  184. resobjext : '.or';
  185. sharedlibext : '.so';
  186. staticlibext : '.a';
  187. staticlibprefix : 'libp';
  188. sharedlibprefix : 'lib';
  189. sharedClibext : '.so';
  190. staticClibext : '.a';
  191. staticClibprefix : 'lib';
  192. sharedClibprefix : 'lib';
  193. importlibprefix : 'libimp';
  194. importlibext : '.a';
  195. Cprefix : '';
  196. newline : #10;
  197. dirsep : '/';
  198. assem : as_ggas;
  199. assemextern : as_ggas;
  200. link : ld_none;
  201. linkextern : ld_solaris;
  202. ar : ar_gnu_gar;
  203. res : res_elf;
  204. dbg : dbg_stabs;
  205. script : script_unix;
  206. endian : endian_big;
  207. alignment :
  208. (
  209. procalign : 4;
  210. loopalign : 4;
  211. jumpalign : 0;
  212. jumpalignskipmax : 0;
  213. coalescealign : 0;
  214. coalescealignskipmax: 0;
  215. constalignmin : 4;
  216. constalignmax : 8;
  217. varalignmin : 4;
  218. varalignmax : 8;
  219. localalignmin : 4;
  220. localalignmax : 8;
  221. recordalignmin : 0;
  222. recordalignmax : 8;
  223. maxCrecordalign : 8
  224. );
  225. first_parm_offset : 92;
  226. stacksize : 262144;
  227. stackalign : 8;
  228. abi : abi_default;
  229. 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';
  230. );
  231. implementation
  232. initialization
  233. {$ifdef CPUI386}
  234. {$ifdef solaris}
  235. set_source_info(system_i386_solaris_info);
  236. {$endif solaris}
  237. {$endif CPUI386}
  238. {$ifdef CPUX86_64}
  239. {$ifdef solaris}
  240. set_source_info(system_x86_64_solaris_info);
  241. {$endif solaris}
  242. {$endif CPUX86_64}
  243. {$ifdef CPUSparc}
  244. {$ifdef solaris}
  245. set_source_info(system_sparc_solaris_info);
  246. {$endif solaris}
  247. {$endif CPUSparc}
  248. end.