link.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. {
  2. $Id$
  3. Copyright (c) 1998 by the FPC development team
  4. This unit handles the linker and binder calls for programs and
  5. libraries
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. Unit link;
  20. Interface
  21. uses cobjects,files;
  22. Type
  23. TLinker = Object
  24. Glibc2,
  25. LinkToC, { Should we link to the C libs? }
  26. Strip : Boolean; { Strip symbols ? }
  27. ObjectFiles,
  28. SharedLibFiles,
  29. StaticLibFiles : TStringContainer;
  30. LibrarySearchPath, { Search path for libraries }
  31. LinkOptions : string; { Additional options to the linker }
  32. DynamicLinker : String[80]; { What Dynamic linker ? }
  33. LinkResName : String[32]; { Name of response file }
  34. { Methods }
  35. Constructor Init;
  36. Destructor Done;
  37. procedure AddModuleFiles(hp:pmodule);
  38. function FindObjectFile(s : string) : string;
  39. function FindLibraryFile(s:string;const ext:string) : string;
  40. Procedure AddObject(const S : String);
  41. Procedure AddStaticLibrary(const S : String);
  42. Procedure AddSharedLibrary(S : String);
  43. Function FindLinker:String; { Find linker, sets Name }
  44. Function DoExec(const command,para:string;info,useshell:boolean):boolean;
  45. Function WriteResponseFile:Boolean;
  46. Function MakeExecutable:boolean;
  47. Procedure MakeStaticLibrary(filescnt:longint);
  48. Procedure MakeSharedLibrary;
  49. end;
  50. PLinker=^TLinker;
  51. Var
  52. Linker : TLinker;
  53. Implementation
  54. uses
  55. Script,globals,systems,verbose
  56. {$ifdef i386}
  57. ,win_targ
  58. {$endif}
  59. {$ifdef linux}
  60. ,linux
  61. {$endif}
  62. ,dos
  63. ;
  64. {$ifndef linux}
  65. Procedure Shell(command:string);
  66. { This is already defined in the linux.ppu for linux, need for the *
  67. expansion under linux }
  68. var
  69. comspec : string;
  70. begin
  71. comspec:=getenv('COMSPEC');
  72. Exec(comspec,' /C '+command);
  73. end;
  74. {$endif}
  75. Constructor TLinker.Init;
  76. begin
  77. ObjectFiles.Init_no_double;
  78. SharedLibFiles.Init_no_double;
  79. StaticLibFiles.Init_no_double;
  80. LinkToC:=False;
  81. Glibc2:=false;
  82. Strip:=false;
  83. LinkOptions:='';
  84. {$ifdef linux}
  85. { first try glibc2 }
  86. DynamicLinker:='/lib/ld-linux.so.2';
  87. if FileExists(DynamicLinker) then
  88. Glibc2:=true
  89. else
  90. DynamicLinker:='/lib/ld-linux.so.1';
  91. LibrarySearchPath:='/lib;/usr/lib';
  92. {$else}
  93. DynamicLinker:='';
  94. LibrarySearchPath:='';
  95. {$endif}
  96. LinkResName:='link.res';
  97. end;
  98. Destructor TLinker.Done;
  99. begin
  100. ObjectFiles.Done;
  101. SharedLibFiles.Done;
  102. StaticLibFiles.Done;
  103. end;
  104. procedure TLinker.AddModuleFiles(hp:pmodule);
  105. begin
  106. with hp^ do
  107. begin
  108. while not linkofiles.empty do
  109. AddObject(linkofiles.Get);
  110. while not linksharedlibs.empty do
  111. AddSharedLibrary(linksharedlibs.Get);
  112. while not linkstaticlibs.empty do
  113. AddStaticLibrary(linkstaticlibs.Get);
  114. end;
  115. end;
  116. var
  117. LastLDBin : string;
  118. Function TLinker.FindLinker:string;
  119. var
  120. ldfound : boolean;
  121. begin
  122. if LastLDBin='' then
  123. begin
  124. if utilsdirectory<>'' then
  125. begin
  126. LastLDBin:=Search(target_link.linkbin+source_os.exeext,
  127. utilsdirectory,ldfound)+target_link.linkbin+source_os.exeext;
  128. end
  129. else
  130. LastLDBin:=FindExe(target_link.linkbin,ldfound);
  131. if (not ldfound) and not(cs_link_extern in aktglobalswitches) then
  132. begin
  133. Message1(exec_w_linker_not_found,LastLDBin);
  134. aktglobalswitches:=aktglobalswitches+[cs_link_extern];
  135. end;
  136. if ldfound then
  137. Message1(exec_t_using_linker,LastLDBin);
  138. end;
  139. FindLinker:=LastLDBin;
  140. end;
  141. { searches an object file }
  142. function TLinker.FindObjectFile(s:string) : string;
  143. var
  144. found : boolean;
  145. begin
  146. if pos('.',s)=0 then
  147. s:=s+target_info.objext;
  148. s:=FixFileName(s);
  149. if FileExists(s) then
  150. begin
  151. Findobjectfile:=s;
  152. exit;
  153. end;
  154. findobjectfile:=search(s,'.;'+unitsearchpath+';'+exepath,found)+s;
  155. if not(cs_link_extern in aktglobalswitches) and (not found) then
  156. Message1(exec_w_objfile_not_found,s);
  157. end;
  158. { searches an library file }
  159. function TLinker.FindLibraryFile(s:string;const ext:string) : string;
  160. var
  161. found : boolean;
  162. begin
  163. if pos('.',s)=0 then
  164. s:=s+ext;
  165. if FileExists(s) then
  166. begin
  167. FindLibraryFile:=s;
  168. exit;
  169. end;
  170. findlibraryfile:=search(s,'.;'+librarysearchpath+';'+exepath,found)+s;
  171. if not(cs_link_extern in aktglobalswitches) and (not found) then
  172. Message1(exec_w_libfile_not_found,s);
  173. end;
  174. Procedure TLinker.AddObject(const S : String);
  175. begin
  176. ObjectFiles.Insert(FindObjectFile(s));
  177. end;
  178. Procedure TLinker.AddSharedLibrary(S:String);
  179. begin
  180. { remove prefix 'lib' }
  181. if Copy(s,1,length(target_os.libprefix))=target_os.libprefix then
  182. Delete(s,1,length(target_os.libprefix));
  183. { remove extension if any }
  184. if Copy(s,length(s)-length(target_os.sharedlibext)+1,length(target_os.sharedlibext))=target_os.sharedlibext then
  185. Delete(s,length(s)-length(target_os.sharedlibext)+1,length(target_os.sharedlibext)+1);
  186. { ready to be inserted }
  187. SharedLibFiles.Insert (S);
  188. end;
  189. Procedure TLinker.AddStaticLibrary(const S:String);
  190. begin
  191. StaticLibFiles.Insert(FindLibraryFile(s,target_os.staticlibext));
  192. end;
  193. Function TLinker.DoExec(const command,para:string;info,useshell:boolean):boolean;
  194. begin
  195. DoExec:=true;
  196. if not(cs_link_extern in aktglobalswitches) then
  197. begin
  198. swapvectors;
  199. if useshell then
  200. shell(command+' '+para)
  201. else
  202. exec(command,para);
  203. swapvectors;
  204. if (doserror<>0) then
  205. begin
  206. Message(exec_w_cant_call_linker);
  207. aktglobalswitches:=aktglobalswitches+[cs_link_extern];
  208. DoExec:=false;
  209. end
  210. else
  211. if (dosexitcode<>0) then
  212. begin
  213. Message(exec_w_error_while_linking);
  214. aktglobalswitches:=aktglobalswitches+[cs_link_extern];
  215. DoExec:=false;
  216. end;
  217. end;
  218. { Update asmres when externmode is set }
  219. if cs_link_extern in aktglobalswitches then
  220. begin
  221. if info then
  222. AsmRes.AddLinkCommand(Command,Para,current_module^.exefilename^)
  223. else
  224. AsmRes.AddLinkCommand(Command,Para,'');
  225. end;
  226. end;
  227. Function TLinker.WriteResponseFile : Boolean;
  228. Var
  229. LinkResponse : Text;
  230. i : longint;
  231. prtobj,s,s2 : string;
  232. found,
  233. linklibc : boolean;
  234. procedure WriteRes(const s:string);
  235. begin
  236. if s<>'' then
  237. WriteLn(Linkresponse,s);
  238. end;
  239. begin
  240. WriteResponseFile:=False;
  241. { set special options for some targets }
  242. linklibc:=false;
  243. prtobj:='prt0';
  244. case target_info.target of
  245. target_m68k_Palmos,
  246. {* Changes made by Ozerski 27.10.1998}
  247. target_i386_Win32 :begin
  248. if DLLsource then
  249. prtobj:='wdllprt0'
  250. else
  251. prtobj:='wprt0';
  252. end;
  253. {* End changes}
  254. target_m68k_linux,
  255. target_i386_linux :
  256. begin
  257. linklibc:=SharedLibFiles.Find('c');
  258. if cs_profile in aktmoduleswitches then
  259. begin
  260. prtobj:='gprt0';
  261. if not glibc2 then
  262. AddSharedLibrary('gmon');
  263. AddSharedLibrary('c');
  264. linklibc:=true;
  265. end
  266. else
  267. begin
  268. if linklibc then
  269. prtobj:='cprt0';
  270. end;
  271. end;
  272. end;
  273. { Fix command line options }
  274. If not SharedLibFiles.Empty then
  275. LinkOptions:='-dynamic-linker='+DynamicLinker+' '+LinkOptions;
  276. if Strip and not(cs_debuginfo in aktmoduleswitches) then
  277. LinkOptions:=LinkOptions+target_link.stripopt;
  278. { Open linkresponse and write header }
  279. assign(linkresponse,inputdir+LinkResName);
  280. {$I-}
  281. rewrite(linkresponse);
  282. {$I+}
  283. if ioresult<>0 then
  284. exit;
  285. { Write library searchpath }
  286. S2:=LibrarySearchPath;
  287. Repeat
  288. i:=Pos(';',S2);
  289. If i=0 then
  290. i:=255;
  291. S:=Copy(S2,1,i-1);
  292. If S<>'' then
  293. WriteRes(target_link.libpathprefix+s+target_link.libpathsuffix);
  294. Delete (S2,1,i);
  295. until S2='';
  296. WriteRes(target_link.inputstart);
  297. { add objectfiles, start with prt0 always }
  298. if prtobj<>'' then
  299. WriteRes(FindObjectFile(prtobj));
  300. if linklibc then
  301. begin
  302. WriteRes(search('crti.o',librarysearchpath,found)+'crti.o');
  303. WriteRes(search('crtbegin.o',librarysearchpath,found)+'crtbegin.o');
  304. end;
  305. while not ObjectFiles.Empty do
  306. begin
  307. s:=ObjectFiles.Get;
  308. if s<>'' then
  309. WriteRes(s);
  310. end;
  311. if linklibc then
  312. begin
  313. WriteRes(search('crtend.o',librarysearchpath,found)+'crtend.o');
  314. WriteRes(search('crtn.o',librarysearchpath,found)+'crtn.o');
  315. end;
  316. { Write sharedlibraries like -l<lib> }
  317. While not SharedLibFiles.Empty do
  318. begin
  319. S:=SharedLibFiles.Get;
  320. i:=Pos(target_os.sharedlibext,S);
  321. if i>0 then
  322. Delete(S,i,255);
  323. WriteRes(target_link.libprefix+s);
  324. end;
  325. WriteRes(target_link.inputend);
  326. { Write staticlibraries }
  327. if not StaticLibFiles.Empty then
  328. begin
  329. WriteRes(target_link.GroupStart);
  330. While not StaticLibFiles.Empty do
  331. begin
  332. S:=StaticLibFiles.Get;
  333. WriteRes(s)
  334. end;
  335. WriteRes(target_link.GroupEnd);
  336. end;
  337. { Close response }
  338. close(linkresponse);
  339. WriteResponseFile:=True;
  340. end;
  341. function TLinker.MakeExecutable:boolean;
  342. var
  343. bindbin : string[80];
  344. bindfound : boolean;
  345. s : string;
  346. success : boolean;
  347. {* Changes made by Ozerski 27.10.1998}
  348. ii:longint;
  349. {* end changes}
  350. begin
  351. {$ifdef linux}
  352. if LinkToC then
  353. begin
  354. AddObject('/usr/lib/crt0.o');
  355. AddObject('lprt');
  356. AddStaticLibrary('libc.a');
  357. AddStaticLibrary('libgcc.a');
  358. end;
  359. {$endif Linux}
  360. { Write used files and libraries }
  361. WriteResponseFile;
  362. { Call linker }
  363. if not(cs_link_extern in aktglobalswitches) then
  364. Message1(exec_i_linking,current_module^.exefilename^);
  365. s:=target_link.linkcmd;
  366. {* Changes made by Ozerski 27.10.1998}
  367. if DLLsource then
  368. Replace(s,'$EXE',current_module^.sharedlibfilename^)
  369. else
  370. Replace(s,'$EXE',current_module^.exefilename^);
  371. {* end changes}
  372. Replace(s,'$OPT',LinkOptions);
  373. Replace(s,'$RES',inputdir+LinkResName);
  374. success:=DoExec(FindLinker,s,true,false);
  375. {Bind}
  376. {* Changes made by Ozerski 27.10.1998}
  377. if target_link.bindbin[1]<>'' then
  378. for ii:=1 to target_link.binders do
  379. begin
  380. s:=target_link.bindcmd[ii];
  381. Replace(s,'$OPT',LinkOptions);
  382. Replace(s,'$RES',inputdir+LinkResName);
  383. if DLLsource then
  384. Replace(s,'$EXE',current_module^.sharedlibfilename^)
  385. else
  386. Replace(s,'$EXE',current_module^.exefilename^);
  387. {* end changes}
  388. {Size of the heap when an EMX program runs in OS/2.}
  389. Replace(s,'$HEAPMB',tostr((maxheapsize+1048575) shr 20));
  390. {Size of the stack when an EMX program runs in OS/2.}
  391. Replace(s,'$STACKKB',tostr((stacksize+1023) shr 10));
  392. {When an EMX program runs in DOS, the heap and stack share the
  393. same memory pool. The heap grows upwards, the stack grows downwards.}
  394. Replace(s,'$DOSHEAPKB',tostr((stacksize+maxheapsize+1023) shr 10));
  395. {* Changes made by Ozerski 27.10.1998}
  396. if utilsdirectory<>'' then
  397. begin
  398. bindbin:=Search(target_link.bindbin[ii]+source_os.exeext,
  399. utilsdirectory,bindfound)+target_link.bindbin[ii]+source_os.exeext;
  400. end
  401. else
  402. bindbin:=FindExe(target_link.bindbin[ii],bindfound);
  403. {* end changes}
  404. if (not bindfound) and not (cs_link_extern in aktglobalswitches) then
  405. begin
  406. Message1(exec_w_binder_not_found,bindbin);
  407. aktglobalswitches:=aktglobalswitches+[cs_link_extern];
  408. end;
  409. DoExec(bindbin,s,false,false);
  410. end;
  411. { Post processor executable }
  412. {$ifdef i386}
  413. if target_info.target=target_i386_Win32 then
  414. win_targ.postprocessexecutable(current_module^.exefilename^);
  415. {$endif}
  416. {Remove ReponseFile}
  417. if (success) and not(cs_link_extern in aktglobalswitches) then
  418. RemoveFile(LinkResName);
  419. MakeExecutable:=success; { otherwise a recursive call to link method }
  420. end;
  421. Procedure TLinker.MakeStaticLibrary(filescnt:longint);
  422. {
  423. FilesCnt holds the amount of .o files created, if filescnt=0 then
  424. no smartlinking is used
  425. }
  426. var
  427. smartpath,
  428. s,
  429. arbin : string;
  430. arfound : boolean;
  431. cnt : longint;
  432. begin
  433. smartpath:=current_module^.path^+FixPath(FixFileName(current_module^.modulename^)+target_info.smartext,false);
  434. { find ar binary }
  435. if utilsdirectory<>'' then
  436. begin
  437. arbin:=Search(target_ar.arbin+source_os.exeext,
  438. utilsdirectory,arfound)+target_ar.arbin+source_os.exeext;
  439. end
  440. else
  441. arbin:=FindExe(target_ar.arbin,arfound);
  442. if (not arfound) and not(cs_link_extern in aktglobalswitches) then
  443. begin
  444. Message(exec_w_ar_not_found);
  445. aktglobalswitches:=aktglobalswitches+[cs_link_extern];
  446. end;
  447. s:=target_ar.arcmd;
  448. Replace(s,'$LIB',current_module^.staticlibfilename^);
  449. if filescnt=0 then
  450. Replace(s,'$FILES',current_module^.objfilename^)
  451. else
  452. Replace(s,'$FILES',FixFileName(smartpath+current_module^.asmprefix^+'*'+target_info.objext));
  453. DoExec(arbin,s,false,true);
  454. { Clean up }
  455. if not(cs_asm_leave in aktglobalswitches) and not(cs_link_extern in aktglobalswitches) then
  456. begin
  457. if filescnt=0 then
  458. RemoveFile(current_module^.objfilename^)
  459. else
  460. begin
  461. for cnt:=1 to filescnt do
  462. if not RemoveFile(FixFileName(smartpath+current_module^.asmprefix^+tostr(cnt)+target_info.objext)) then
  463. RemoveFile(FixFileName(smartpath+current_module^.asmprefix^+'e'+tostr(cnt)+target_info.objext));
  464. RemoveDir(smartpath);
  465. end;
  466. end;
  467. end;
  468. Procedure TLinker.MakeSharedLibrary;
  469. var
  470. s : string;
  471. begin
  472. s:=' -shared -o $LIB $FILES';
  473. Replace(s,'$LIB',current_module^.sharedlibfilename^);
  474. Replace(s,'$FILES',current_module^.objfilename^);
  475. if DoExec(FindLinker,s,false,false) then
  476. RemoveFile(current_module^.objfilename^);
  477. end;
  478. end.
  479. {
  480. $Log$
  481. Revision 1.38 1998-11-30 09:43:13 pierre
  482. * some range check bugs fixed (still not working !)
  483. + added DLL writing support for win32 (also accepts variables)
  484. + TempAnsi for code that could be used for Temporary ansi strings
  485. handling
  486. Revision 1.37 1998/10/26 22:23:31 peter
  487. + fixpath() has an extra option to allow a ./ as path
  488. Revision 1.36 1998/10/22 15:18:44 florian
  489. + switch -vx for win32 added
  490. Revision 1.35 1998/10/19 18:06:23 peter
  491. * use no_double
  492. Revision 1.34 1998/10/16 13:37:18 florian
  493. + switch -FD added to specify the path for utilities
  494. Revision 1.33 1998/10/14 13:38:22 peter
  495. * fixed path with staticlib/objects in ppufiles
  496. Revision 1.32 1998/10/14 11:03:55 daniel
  497. * Forgot to dereference a pointer.
  498. Revision 1.31 1998/10/14 11:01:21 daniel
  499. * Staticlibfilename no longer not include a path. Correction when calling
  500. ar.
  501. Revision 1.30 1998/10/13 13:10:18 peter
  502. * new style for m68k/i386 infos and enums
  503. Revision 1.29 1998/10/13 08:19:34 pierre
  504. + source_os is now set correctly for cross-processor compilers
  505. (tos contains all target_infos and
  506. we use CPU86 and CPU68 conditionnals to
  507. get the source operating system
  508. this only works if you do not undefine
  509. the source target !!)
  510. * several cg68k memory leaks fixed
  511. + started to change the code so that it should be possible to have
  512. a complete compiler (both for m68k and i386 !!)
  513. Revision 1.28 1998/10/08 23:28:56 peter
  514. * -vu shows unit info, -vt shows tried/used files
  515. Revision 1.27 1998/10/06 17:16:52 pierre
  516. * some memory leaks fixed (thanks to Peter for heaptrc !)
  517. Revision 1.26 1998/09/29 15:23:05 peter
  518. * remove also the end files for smartlinking
  519. Revision 1.25 1998/09/10 15:25:31 daniel
  520. + Added maxheapsize.
  521. * Corrected semi-bug in calling the assembler and the linker
  522. Revision 1.24 1998/09/07 18:32:45 peter
  523. * fixed for m68k
  524. Revision 1.23 1998/09/03 17:39:04 florian
  525. + better code for type conversation longint/dword to real type
  526. Revision 1.22 1998/09/01 09:01:00 peter
  527. + glibc2 support
  528. Revision 1.21 1998/08/31 12:26:26 peter
  529. * m68k and palmos updates from surebugfixes
  530. Revision 1.20 1998/08/19 10:06:14 peter
  531. * fixed filenames and removedir which supports slash at the end
  532. Revision 1.19 1998/08/17 09:17:47 peter
  533. * static/shared linking updates
  534. Revision 1.18 1998/08/14 21:56:34 peter
  535. * setting the outputfile using -o works now to create static libs
  536. Revision 1.17 1998/08/14 18:16:08 peter
  537. * return after a failed call will now add it to ppas
  538. Revision 1.16 1998/08/12 19:28:15 peter
  539. * better libc support
  540. Revision 1.15 1998/08/10 14:50:02 peter
  541. + localswitches, moduleswitches, globalswitches splitting
  542. Revision 1.14 1998/06/17 14:10:13 peter
  543. * small os2 fixes
  544. * fixed interdependent units with newppu (remake3 under linux works now)
  545. Revision 1.13 1998/06/08 22:59:46 peter
  546. * smartlinking works for win32
  547. * some defines to exclude some compiler parts
  548. Revision 1.12 1998/06/04 23:51:44 peter
  549. * m68k compiles
  550. + .def file creation moved to gendef.pas so it could also be used
  551. for win32
  552. Revision 1.11 1998/05/27 00:20:31 peter
  553. * some scanner optimizes
  554. * automaticly aout2exe for go32v1
  555. * fixed dynamiclinker option which was added at the wrong place
  556. Revision 1.10 1998/05/22 12:32:47 peter
  557. * fixed -L on the commandline, Dos commandline is only 128 bytes
  558. Revision 1.9 1998/05/12 10:46:59 peter
  559. * moved printstatus to verb_def
  560. + V_Normal which is between V_Error and V_Warning and doesn't have a
  561. prefix like error: warning: and is included in V_Default
  562. * fixed some messages
  563. * first time parameter scan is only for -v and -T
  564. - removed old style messages
  565. Revision 1.8 1998/05/11 13:07:54 peter
  566. + $ifdef NEWPPU for the new ppuformat
  567. + $define GDB not longer required
  568. * removed all warnings and stripped some log comments
  569. * no findfirst/findnext anymore to remove smartlink *.o files
  570. Revision 1.7 1998/05/08 09:21:20 michael
  571. * Added missing -Fl message to messages file.
  572. * Corrected mangling of file names when doing Linklib
  573. * -Fl now actually WORKS.
  574. * Librarysearchpath is now a field in linker object.
  575. Revision 1.6 1998/05/06 09:26:49 peter
  576. * fixed ld call with shell
  577. Revision 1.4 1998/05/04 17:54:25 peter
  578. + smartlinking works (only case jumptable left todo)
  579. * redesign of systems.pas to support assemblers and linkers
  580. + Unitname is now also in the PPU-file, increased version to 14
  581. Revision 1.3 1998/04/16 10:54:30 daniel
  582. * Fixed linking for OS/2.
  583. }