t_sunos.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. {
  2. Copyright (c) 1998-2008 by Peter Vreman
  3. This unit implements support import,export,link routines
  4. for the (i386) solaris target
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit t_sunos;
  19. {$i fpcdefs.inc}
  20. interface
  21. { copy from t_linux
  22. // Up to now we use gld since the solaris ld seems not support .res-files}
  23. {-$DEFINE LinkTest} { DON't del link.res and write Info }
  24. {$DEFINE GnuLd}{The other is not implemented }
  25. implementation
  26. uses
  27. sysutils,
  28. cutils,cfileutl,cclasses,
  29. verbose,systems,globtype,globals,
  30. symconst,script,
  31. fmodule,aasmbase,aasmtai,aasmdata,aasmcpu,cpubase,symsym,symdef,
  32. cgobj,
  33. import,export,link,comprsrc,rescmn,i_sunos,ogbase;
  34. type
  35. timportlibsolaris=class(timportlib)
  36. procedure generatelib;override;
  37. end;
  38. texportlibsolaris=class(texportlib)
  39. procedure preparelib(const s : string);override;
  40. procedure exportprocedure(hp : texported_item);override;
  41. procedure exportvar(hp : texported_item);override;
  42. procedure generatelib;override;
  43. end;
  44. tlinkersolaris=class(texternallinker)
  45. private
  46. Glibc2,
  47. Glibc21 : boolean;
  48. use_gnu_ld : boolean;
  49. linkres : TLinkRes;
  50. Function WriteResponseFile(isdll:boolean) : Boolean;
  51. public
  52. constructor Create;override;
  53. procedure SetDefaultInfo;override;
  54. function MakeExecutable:boolean;override;
  55. function MakeSharedLibrary:boolean;override;
  56. end;
  57. {*****************************************************************************
  58. TIMPORTLIBsolaris
  59. *****************************************************************************}
  60. procedure timportlibsolaris.generatelib;
  61. var
  62. i : longint;
  63. ImportLibrary : TImportLibrary;
  64. begin
  65. for i:=0 to current_module.ImportLibraryList.Count-1 do
  66. begin
  67. ImportLibrary:=TImportLibrary(current_module.ImportLibraryList[i]);
  68. current_module.linkothersharedlibs.add(ImportLibrary.Name,link_always);
  69. end;
  70. end;
  71. {*****************************************************************************
  72. TEXPORTLIBsolaris
  73. *****************************************************************************}
  74. procedure texportlibsolaris.preparelib(const s:string);
  75. begin
  76. end;
  77. procedure texportlibsolaris.exportprocedure(hp : texported_item);
  78. var
  79. hp2 : texported_item;
  80. begin
  81. { first test the index value }
  82. if (hp.options and eo_index)<>0 then
  83. begin
  84. Message1(parser_e_no_export_with_index_for_target,'solaris');
  85. exit;
  86. end;
  87. { use pascal name is none specified }
  88. if (hp.options and eo_name)=0 then
  89. begin
  90. hp.name:=stringdup(hp.sym.name);
  91. hp.options:=hp.options or eo_name;
  92. end;
  93. { now place in correct order }
  94. hp2:=texported_item(current_module._exports.first);
  95. while assigned(hp2) and
  96. (hp.name^>hp2.name^) do
  97. hp2:=texported_item(hp2.next);
  98. { insert hp there !! }
  99. if assigned(hp2) and (hp2.name^=hp.name^) then
  100. begin
  101. { this is not allowed !! }
  102. Message1(parser_e_export_name_double,hp.name^);
  103. exit;
  104. end;
  105. if hp2=texported_item(current_module._exports.first) then
  106. current_module._exports.insert(hp)
  107. else if assigned(hp2) then
  108. begin
  109. hp.next:=hp2;
  110. hp.previous:=hp2.previous;
  111. if assigned(hp2.previous) then
  112. hp2.previous.next:=hp;
  113. hp2.previous:=hp;
  114. end
  115. else
  116. current_module._exports.concat(hp);
  117. end;
  118. procedure texportlibsolaris.exportvar(hp : texported_item);
  119. begin
  120. hp.is_var:=true;
  121. exportprocedure(hp);
  122. end;
  123. procedure texportlibsolaris.generatelib;
  124. var
  125. hp2 : texported_item;
  126. pd : tprocdef;
  127. begin
  128. new_section(current_asmdata.asmlists[al_procedures],sec_code,'',0);
  129. hp2:=texported_item(current_module._exports.first);
  130. while assigned(hp2) do
  131. begin
  132. if (not hp2.is_var) and
  133. (hp2.sym.typ=procsym) then
  134. begin
  135. { the manglednames can already be the same when the procedure
  136. is declared with cdecl }
  137. pd:=tprocdef(tprocsym(hp2.sym).ProcdefList[0]);
  138. if pd.mangledname<>hp2.name^ then
  139. begin
  140. { place jump in al_procedures }
  141. current_asmdata.asmlists[al_procedures].concat(tai_align.create(target_info.alignment.procalign));
  142. current_asmdata.asmlists[al_procedures].concat(Tai_symbol.Createname_global(hp2.name^,AT_FUNCTION,0));
  143. cg.a_jmp_name(current_asmdata.asmlists[al_procedures],pd.mangledname);
  144. current_asmdata.asmlists[al_procedures].concat(Tai_symbol_end.Createname(hp2.name^));
  145. end;
  146. end
  147. else
  148. Message1(parser_e_no_export_of_variables_for_target,'solaris');
  149. hp2:=texported_item(hp2.next);
  150. end;
  151. end;
  152. {*****************************************************************************
  153. TLINKERsolaris
  154. *****************************************************************************}
  155. Constructor TLinkersolaris.Create;
  156. begin
  157. Inherited Create;
  158. {$ifndef x86_64}
  159. use_gnu_ld:=true;
  160. {$endif}
  161. if cs_link_native in init_settings.globalswitches then
  162. use_gnu_ld:=false
  163. else
  164. use_gnu_ld:=true;
  165. if NOT Dontlinkstdlibpath Then
  166. {$ifdef x86_64}
  167. LibrarySearchPath.AddPath(sysrootpath,'/lib/64;/usr/lib/64;/usr/X11R6/lib/64;/opt/sfw/lib/64',true);
  168. {$else not x86_64}
  169. LibrarySearchPath.AddPath(sysrootpath,'/lib;/usr/lib;/usr/X11R6/lib;/opt/sfw/lib',true);
  170. {$endif not x86_64}
  171. {$ifdef LinkTest}
  172. if (cs_link_staticflag in current_settings.globalswitches) then WriteLN('ForceLinkStaticFlag');
  173. if (cs_link_static in current_settings.globalswitches) then WriteLN('LinkStatic-Flag');
  174. if (cs_link_shared in current_settings.globalswitches) then WriteLN('LinkSynamicFlag');
  175. {$EndIf}
  176. end;
  177. procedure TLinkersolaris.SetDefaultInfo;
  178. {
  179. This will also detect which libc version will be used
  180. }
  181. {$ifdef x86_64}
  182. const
  183. gld = 'gld -m elf_x86_64 ';
  184. solaris_ld = '/usr/bin/ld -64 ';
  185. {$else}
  186. const
  187. gld = 'gld ';
  188. solaris_ld = 'ld ';
  189. {$endif}
  190. begin
  191. Glibc2:=false;
  192. Glibc21:=false;
  193. with Info do
  194. begin
  195. {$IFDEF GnuLd}
  196. ExeCmd[1]:=gld + '$OPT $DYNLINK $STATIC $STRIP -L. -o $EXE $RES';
  197. ExeCmd[2]:=solaris_ld + '$OPT $DYNLINK $STATIC $STRIP -L . -o $EXE $RESDATA';
  198. DllCmd[1]:=gld + '$OPT -shared -L. -o $EXE $RES';
  199. DllCmd[2]:='gstrip --strip-unneeded $EXE';
  200. DynamicLinker:=''; { Gnu uses the default }
  201. Glibc21:=false;
  202. {$ELSE}
  203. Not Implememted
  204. {$ENDIF}
  205. (* Linux Stuff not needed?
  206. { first try glibc2 } // muss noch gendert werden
  207. if FileExists(DynamicLinker) then
  208. begin
  209. Glibc2:=true;
  210. { Check for 2.0 files, else use the glibc 2.1 stub }
  211. if FileExists('/lib/ld-2.0.*') then
  212. Glibc21:=false
  213. else
  214. Glibc21:=true;
  215. end
  216. else
  217. DynamicLinker:='/lib/ld-linux.so.1';
  218. *)
  219. end;
  220. end;
  221. Function TLinkersolaris.WriteResponseFile(isdll:boolean) : Boolean;
  222. Var
  223. i : longint;
  224. { cprtobj,
  225. gprtobj,
  226. prtobj : string[80];}
  227. HPath : TCmdStrListItem;
  228. s,s2 : TCmdStr;
  229. linkdynamic,
  230. linklibc : boolean;
  231. begin
  232. WriteResponseFile:=False;
  233. { set special options for some targets }
  234. linkdynamic:=not(SharedLibFiles.empty);
  235. { linkdynamic:=false; // da nicht getestet }
  236. linklibc:=(SharedLibFiles.Find('c')<>nil);
  237. { prtobj:='prt0';
  238. cprtobj:='cprt0';
  239. gprtobj:='gprt0';}
  240. if cs_profile in current_settings.moduleswitches then
  241. begin
  242. { prtobj:=gprtobj;}
  243. if not glibc2 then
  244. AddSharedLibrary('gmon');
  245. AddSharedLibrary('c');
  246. linklibc:=true;
  247. end
  248. else
  249. begin
  250. if linklibc then
  251. begin
  252. { prtobj:=cprtobj;}
  253. end
  254. else
  255. AddSharedLibrary('c'); { quick hack: this solaris implementation needs alwys libc }
  256. end;
  257. if use_gnu_ld then
  258. begin
  259. { Open link.res file }
  260. LinkRes:=TLinkRes.Create(outputexedir+Info.ResName);
  261. { Write path to search libraries }
  262. HPath:=TCmdStrListItem(current_module.locallibrarysearchpath.First);
  263. while assigned(HPath) do
  264. begin
  265. LinkRes.Add('SEARCH_DIR('+maybequoted(HPath.Str)+')');
  266. HPath:=TCmdStrListItem(HPath.Next);
  267. end;
  268. HPath:=TCmdStrListItem(LibrarySearchPath.First);
  269. while assigned(HPath) do
  270. begin
  271. LinkRes.Add('SEARCH_DIR('+maybequoted(HPath.Str)+')');
  272. HPath:=TCmdStrListItem(HPath.Next);
  273. end;
  274. LinkRes.Add('INPUT(');
  275. { add objectfiles, start with prt0 always }
  276. { solaris port contains _start inside the system unit, it
  277. needs only one entry because it is linked always against libc
  278. if prtobj<>'' then
  279. LinkRes.AddFileName(FindObjectFile(prtobj,'',false));
  280. }
  281. { try to add crti and crtbegin if linking to C }
  282. if linklibc then { Needed in solaris? }
  283. begin
  284. { if librarysearchpath.FindFile('crtbegin.o',s) then
  285. LinkRes.AddFileName(s);}
  286. if librarysearchpath.FindFile('crti.o',false,s) then
  287. LinkRes.AddFileName(s);
  288. end;
  289. { main objectfiles }
  290. while not ObjectFiles.Empty do
  291. begin
  292. s:=ObjectFiles.GetFirst;
  293. if s<>'' then
  294. LinkRes.AddFileName(maybequoted(s));
  295. end;
  296. LinkRes.Add(')');
  297. { Write staticlibraries }
  298. if not StaticLibFiles.Empty then
  299. begin
  300. LinkRes.Add('GROUP(');
  301. While not StaticLibFiles.Empty do
  302. begin
  303. S:=StaticLibFiles.GetFirst;
  304. LinkRes.AddFileName(maybequoted(s))
  305. end;
  306. LinkRes.Add(')');
  307. end;
  308. { Write sharedlibraries like -l<lib>, also add the needed dynamic linker
  309. here to be sure that it gets linked this is needed for glibc2 systems (PFV) }
  310. if not SharedLibFiles.Empty then
  311. begin
  312. LinkRes.Add('INPUT(');
  313. While not SharedLibFiles.Empty do
  314. begin
  315. S:=SharedLibFiles.GetFirst;
  316. if s<>'c' then
  317. begin
  318. i:=Pos(target_info.sharedlibext,S);
  319. if i>0 then
  320. Delete(S,i,255);
  321. LinkRes.Add('-l'+s);
  322. end
  323. else
  324. begin
  325. linklibc:=true;
  326. linkdynamic:=false; { libc will include the ld-solaris (war ld-linux) for us }
  327. end;
  328. end;
  329. { be sure that libc is the last lib }
  330. if linklibc then
  331. LinkRes.Add('-lc');
  332. { when we have -static for the linker the we also need libgcc }
  333. if (cs_link_staticflag in current_settings.globalswitches) then begin
  334. LinkRes.Add('-lgcc');
  335. end;
  336. if linkdynamic and (Info.DynamicLinker<>'') then { gld has a default, DynamicLinker is not set in solaris }
  337. LinkRes.AddFileName(Info.DynamicLinker);
  338. LinkRes.Add(')');
  339. end;
  340. { objects which must be at the end }
  341. if linklibc then {needed in solaris ? }
  342. begin
  343. if {librarysearchpath.FindFile('crtend.o',s1) or}
  344. librarysearchpath.FindFile('crtn.o',false,s2) then
  345. begin
  346. LinkRes.Add('INPUT(');
  347. { LinkRes.AddFileName(s1);}
  348. LinkRes.AddFileName(s2);
  349. LinkRes.Add(')');
  350. end;
  351. end;
  352. { Write and Close response }
  353. linkres.writetodisk;
  354. LinkRes.Free;
  355. end
  356. else { not use_gnu_ld }
  357. begin
  358. { Open link.res file }
  359. LinkRes:=TLinkRes.Create(outputexedir+Info.ResName);
  360. { Write path to search libraries }
  361. HPath:=TCmdStrListItem(current_module.locallibrarysearchpath.First);
  362. while assigned(HPath) do
  363. begin
  364. LinkRes.Add('-L '+maybequoted(HPath.Str));
  365. HPath:=TCmdStrListItem(HPath.Next);
  366. end;
  367. HPath:=TCmdStrListItem(LibrarySearchPath.First);
  368. while assigned(HPath) do
  369. begin
  370. LinkRes.Add('-L '+maybequoted(HPath.Str));
  371. HPath:=TCmdStrListItem(HPath.Next);
  372. end;
  373. { add objectfiles, start with prt0 always }
  374. { solaris port contains _start inside the system unit, it
  375. needs only one entry because it is linked always against libc
  376. if prtobj<>'' then
  377. LinkRes.AddFileName(FindObjectFile(prtobj,'',false));
  378. }
  379. { try to add crti and crtbegin if linking to C }
  380. if linklibc then { Needed in solaris? }
  381. begin
  382. { if librarysearchpath.FindFile('crtbegin.o',s) then
  383. LinkRes.AddFileName(s);}
  384. if librarysearchpath.FindFile('crti.o',false,s) then
  385. LinkRes.AddFileName(s);
  386. end;
  387. { main objectfiles }
  388. while not ObjectFiles.Empty do
  389. begin
  390. s:=ObjectFiles.GetFirst;
  391. if s<>'' then
  392. LinkRes.AddFileName(maybequoted(s));
  393. end;
  394. { Write staticlibraries }
  395. if not StaticLibFiles.Empty then
  396. begin
  397. While not StaticLibFiles.Empty do
  398. begin
  399. S:=StaticLibFiles.GetFirst;
  400. LinkRes.AddFileName(maybequoted(s))
  401. end;
  402. end;
  403. { Write sharedlibraries like -l<lib>, also add the needed dynamic linker
  404. here to be sure that it gets linked this is needed for glibc2 systems (PFV) }
  405. if not SharedLibFiles.Empty then
  406. begin
  407. While not SharedLibFiles.Empty do
  408. begin
  409. S:=SharedLibFiles.GetFirst;
  410. if s<>'c' then
  411. begin
  412. i:=Pos(target_info.sharedlibext,S);
  413. if i>0 then
  414. Delete(S,i,255);
  415. LinkRes.Add('-l'+s);
  416. end
  417. else
  418. begin
  419. linklibc:=true;
  420. linkdynamic:=false; { libc will include the ld-solaris (war ld-linux) for us }
  421. end;
  422. end;
  423. { be sure that libc is the last lib }
  424. if linklibc then
  425. LinkRes.Add('-lc');
  426. { when we have -static for the linker the we also need libgcc }
  427. if (cs_link_staticflag in current_settings.globalswitches) then begin
  428. LinkRes.Add('-lgcc');
  429. end;
  430. if linkdynamic and (Info.DynamicLinker<>'') then { gld has a default, DynamicLinker is not set in solaris }
  431. LinkRes.AddFileName(Info.DynamicLinker);
  432. end;
  433. { objects which must be at the end }
  434. if linklibc then {needed in solaris ? }
  435. begin
  436. if {librarysearchpath.FindFile('crtend.o',s1) or}
  437. librarysearchpath.FindFile('crtn.o',false,s2) then
  438. begin
  439. { LinkRes.AddFileName(s1);}
  440. LinkRes.AddFileName(s2);
  441. end;
  442. end;
  443. { Write and Close response }
  444. //linkres.writetodisk;
  445. //LinkRes.Free;
  446. end;
  447. WriteResponseFile:=True;
  448. end;
  449. function TLinkersolaris.MakeExecutable:boolean;
  450. var
  451. binstr,
  452. s, linkstr,
  453. cmdstr : TCmdStr;
  454. success : boolean;
  455. DynLinkStr : string[60];
  456. StaticStr,
  457. StripStr : string[40];
  458. begin
  459. if not(cs_link_nolink in current_settings.globalswitches) then
  460. Message1(exec_i_linking,current_module.exefilename^);
  461. { Create some replacements }
  462. StaticStr:='';
  463. StripStr:='';
  464. DynLinkStr:='';
  465. if (cs_link_staticflag in current_settings.globalswitches) then
  466. StaticStr:='-Bstatic';
  467. if (cs_link_strip in current_settings.globalswitches) then
  468. StripStr:='-s';
  469. If (cs_profile in current_settings.moduleswitches) or
  470. ((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then
  471. DynLinkStr:='-dynamic-linker='+Info.DynamicLinker;
  472. { solaris sets DynamicLinker, but gld will (hopefully) defaults to -Bdynamic and add the default-linker }
  473. { Write used files and libraries }
  474. WriteResponseFile(false);
  475. { Call linker }
  476. if use_gnu_ld then
  477. SplitBinCmd(Info.ExeCmd[1],binstr,cmdstr)
  478. else
  479. SplitBinCmd(Info.ExeCmd[2],binstr,cmdstr);
  480. Replace(cmdstr,'$EXE',maybequoted(current_module.exefilename^));
  481. Replace(cmdstr,'$OPT',Info.ExtraOptions);
  482. if use_gnu_ld then
  483. Replace(cmdstr,'$RES',maybequoted(outputexedir+Info.ResName))
  484. else
  485. begin
  486. linkstr:='';
  487. while not linkres.data.Empty do
  488. begin
  489. s:=linkres.data.GetFirst;
  490. linkstr:=linkstr+s+' ';
  491. end;
  492. linkres.free;
  493. Replace(cmdstr,'$RESDATA',linkstr);
  494. end;
  495. Replace(cmdstr,'$STATIC',StaticStr);
  496. Replace(cmdstr,'$STRIP',StripStr);
  497. Replace(cmdstr,'$DYNLINK',DynLinkStr);
  498. if use_gnu_ld then
  499. success:=DoExec(FindUtil(utilsprefix+BinStr),CmdStr,true,false)
  500. else { Using utilsprefix has no sense on /usr/bin/ld }
  501. success:=DoExec(FindUtil(BinStr),CmdStr,true,false);
  502. { Remove ReponseFile }
  503. {$IFNDEF LinkTest}
  504. if (success) and use_gnu_ld and
  505. not(cs_link_nolink in current_settings.globalswitches) then
  506. DeleteFile(outputexedir+Info.ResName);
  507. {$ENDIF}
  508. MakeExecutable:=success; { otherwise a recursive call to link method }
  509. end;
  510. Function TLinkersolaris.MakeSharedLibrary:boolean;
  511. var
  512. binstr,
  513. cmdstr : TCmdStr;
  514. success : boolean;
  515. begin
  516. MakeSharedLibrary:=false;
  517. if not(cs_link_nolink in current_settings.globalswitches) then
  518. Message1(exec_i_linking,current_module.sharedlibfilename^);
  519. { Write used files and libraries }
  520. WriteResponseFile(true);
  521. { Call linker }
  522. SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
  523. Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename^));
  524. Replace(cmdstr,'$OPT',Info.ExtraOptions);
  525. Replace(cmdstr,'$RES',maybequoted(outputexedir+Info.ResName));
  526. success:=DoExec(FindUtil(utilsprefix+binstr),cmdstr,true,false);
  527. { Strip the library ? }
  528. if success and (cs_link_strip in current_settings.globalswitches) then
  529. begin
  530. SplitBinCmd(Info.DllCmd[2],binstr,cmdstr);
  531. Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename^));
  532. success:=DoExec(utilsprefix+FindUtil(binstr),cmdstr,true,false);
  533. end;
  534. { Remove ReponseFile }
  535. {$IFNDEF LinkTest}
  536. if (success) and not(cs_link_nolink in current_settings.globalswitches) then
  537. DeleteFile(outputexedir+Info.ResName);
  538. {$ENDIF}
  539. MakeSharedLibrary:=success; { otherwise a recursive call to link method }
  540. end;
  541. {*****************************************************************************
  542. Initialize
  543. *****************************************************************************}
  544. initialization
  545. {$ifdef i386}
  546. RegisterExternalLinker(system_i386_solaris_info,TLinkersolaris);
  547. RegisterImport(system_i386_solaris,TImportLibsolaris);
  548. RegisterExport(system_i386_solaris,TExportLibsolaris);
  549. RegisterTarget(system_i386_solaris_info);
  550. {$endif i386}
  551. {$ifdef x86_64}
  552. RegisterExternalLinker(system_x86_64_solaris_info,TLinkersolaris);
  553. RegisterImport(system_x86_64_solaris,TImportLibsolaris);
  554. RegisterExport(system_x86_64_solaris,TExportLibsolaris);
  555. RegisterTarget(system_x86_64_solaris_info);
  556. {$endif x86_64}
  557. {$ifdef sparc}
  558. RegisterExternalLinker(system_sparc_solaris_info,TLinkersolaris);
  559. RegisterImport(system_sparc_solaris,TImportLibsolaris);
  560. RegisterExport(system_sparc_solaris,TExportLibsolaris);
  561. RegisterTarget(system_sparc_solaris_info);
  562. {$endif sparc}
  563. RegisterRes(res_elf_info,TWinLikeResourceFile);
  564. end.