i_sunos.pas 9.1 KB

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