i_sunos.pas 9.6 KB

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