ag386int.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by Florian Klaempfl
  4. This unit implements an asmoutput class for Intel syntax with Intel i386+
  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. {$ifdef TP}
  19. {$N+,E+}
  20. {$endif}
  21. unit ag386int;
  22. interface
  23. uses aasm,assemble;
  24. type
  25. pi386intasmlist=^ti386intasmlist;
  26. ti386intasmlist = object(tasmlist)
  27. procedure WriteTree(p:paasmoutput);virtual;
  28. procedure WriteAsmList;virtual;
  29. procedure WriteExternals;
  30. end;
  31. implementation
  32. uses
  33. strings,
  34. cutils,globtype,globals,systems,cobjects,
  35. fmodule,finput,verbose,cpubase,cpuasm
  36. {$ifdef GDB}
  37. ,gdb
  38. {$endif GDB}
  39. ;
  40. const
  41. line_length = 70;
  42. {$ifdef EXTTYPE}
  43. extstr : array[EXT_NEAR..EXT_ABS] of String[8] =
  44. ('NEAR','FAR','PROC','BYTE','WORD','DWORD',
  45. 'CODEPTR','DATAPTR','FWORD','PWORD','QWORD','TBYTE','ABS');
  46. {$endif}
  47. function single2str(d : single) : string;
  48. var
  49. hs : string;
  50. p : byte;
  51. begin
  52. str(d,hs);
  53. { nasm expects a lowercase e }
  54. p:=pos('E',hs);
  55. if p>0 then
  56. hs[p]:='e';
  57. p:=pos('+',hs);
  58. if p>0 then
  59. delete(hs,p,1);
  60. single2str:=lower(hs);
  61. end;
  62. function double2str(d : double) : string;
  63. var
  64. hs : string;
  65. p : byte;
  66. begin
  67. str(d,hs);
  68. { nasm expects a lowercase e }
  69. p:=pos('E',hs);
  70. if p>0 then
  71. hs[p]:='e';
  72. p:=pos('+',hs);
  73. if p>0 then
  74. delete(hs,p,1);
  75. double2str:=lower(hs);
  76. end;
  77. function extended2str(e : extended) : string;
  78. var
  79. hs : string;
  80. p : byte;
  81. begin
  82. str(e,hs);
  83. { nasm expects a lowercase e }
  84. p:=pos('E',hs);
  85. if p>0 then
  86. hs[p]:='e';
  87. p:=pos('+',hs);
  88. if p>0 then
  89. delete(hs,p,1);
  90. extended2str:=lower(hs);
  91. end;
  92. function comp2str(d : bestreal) : string;
  93. type
  94. pdouble = ^double;
  95. var
  96. c : comp;
  97. dd : pdouble;
  98. begin
  99. {$ifdef FPC}
  100. c:=comp(d);
  101. {$else}
  102. c:=d;
  103. {$endif}
  104. dd:=pdouble(@c); { this makes a bitwise copy of c into a double }
  105. comp2str:=double2str(dd^);
  106. end;
  107. function getreferencestring(var ref : treference) : string;
  108. var
  109. s : string;
  110. first : boolean;
  111. begin
  112. if ref.is_immediate then
  113. begin
  114. getreferencestring:=tostr(ref.offset);
  115. exit;
  116. end
  117. else
  118. with ref do
  119. begin
  120. first:=true;
  121. inc(offset,offsetfixup);
  122. offsetfixup:=0;
  123. if ref.segment<>R_NO then
  124. s:=int_reg2str[segment]+':['
  125. else
  126. s:='[';
  127. if assigned(symbol) then
  128. begin
  129. s:=s+symbol^.name;
  130. first:=false;
  131. end;
  132. if (base<>R_NO) then
  133. begin
  134. if not(first) then
  135. s:=s+'+'
  136. else
  137. first:=false;
  138. s:=s+int_reg2str[base];
  139. end;
  140. if (index<>R_NO) then
  141. begin
  142. if not(first) then
  143. s:=s+'+'
  144. else
  145. first:=false;
  146. s:=s+int_reg2str[index];
  147. if scalefactor<>0 then
  148. s:=s+'*'+tostr(scalefactor);
  149. end;
  150. if offset<0 then
  151. s:=s+tostr(offset)
  152. else if (offset>0) then
  153. s:=s+'+'+tostr(offset);
  154. s:=s+']';
  155. end;
  156. getreferencestring:=s;
  157. end;
  158. function getopstr(const o:toper;s : topsize; opcode: tasmop;dest : boolean) : string;
  159. var
  160. hs : string;
  161. begin
  162. case o.typ of
  163. top_reg :
  164. getopstr:=int_reg2str[o.reg];
  165. top_const :
  166. getopstr:=tostr(o.val);
  167. top_symbol :
  168. begin
  169. if assigned(o.sym) then
  170. hs:='offset '+o.sym^.name
  171. else
  172. hs:='offset ';
  173. if o.symofs>0 then
  174. hs:=hs+'+'+tostr(o.symofs)
  175. else
  176. if o.symofs<0 then
  177. hs:=hs+tostr(o.symofs)
  178. else
  179. if not(assigned(o.sym)) then
  180. hs:=hs+'0';
  181. getopstr:=hs;
  182. end;
  183. top_ref :
  184. begin
  185. hs:=getreferencestring(o.ref^);
  186. if ((opcode <> A_LGS) and (opcode <> A_LSS) and
  187. (opcode <> A_LFS) and (opcode <> A_LDS) and
  188. (opcode <> A_LES)) then
  189. Begin
  190. case s of
  191. S_B : hs:='byte ptr '+hs;
  192. S_W : hs:='word ptr '+hs;
  193. S_L : hs:='dword ptr '+hs;
  194. S_IS : hs:='word ptr '+hs;
  195. S_IL : hs:='dword ptr '+hs;
  196. S_IQ : hs:='qword ptr '+hs;
  197. S_FS : hs:='dword ptr '+hs;
  198. S_FL : hs:='qword ptr '+hs;
  199. S_FX : hs:='tbyte ptr '+hs;
  200. S_BW : if dest then
  201. hs:='word ptr '+hs
  202. else
  203. hs:='byte ptr '+hs;
  204. S_BL : if dest then
  205. hs:='dword ptr '+hs
  206. else
  207. hs:='byte ptr '+hs;
  208. S_WL : if dest then
  209. hs:='dword ptr '+hs
  210. else
  211. hs:='word ptr '+hs;
  212. end;
  213. end;
  214. getopstr:=hs;
  215. end;
  216. else
  217. internalerror(10001);
  218. end;
  219. end;
  220. function getopstr_jmp(const o:toper) : string;
  221. var
  222. hs : string;
  223. begin
  224. case o.typ of
  225. top_reg :
  226. getopstr_jmp:=int_reg2str[o.reg];
  227. top_const :
  228. getopstr_jmp:=tostr(o.val);
  229. top_symbol :
  230. begin
  231. hs:=o.sym^.name;
  232. if o.symofs>0 then
  233. hs:=hs+'+'+tostr(o.symofs)
  234. else
  235. if o.symofs<0 then
  236. hs:=hs+tostr(o.symofs);
  237. getopstr_jmp:=hs;
  238. end;
  239. top_ref :
  240. getopstr_jmp:=getreferencestring(o.ref^);
  241. else
  242. internalerror(10001);
  243. end;
  244. end;
  245. {****************************************************************************
  246. TI386INTASMLIST
  247. ****************************************************************************}
  248. var
  249. LastSec : tsection;
  250. const
  251. ait_const2str:array[ait_const_32bit..ait_const_8bit] of string[8]=
  252. (#9'DD'#9,#9'DW'#9,#9'DB'#9);
  253. Function PadTabs(const p:string;addch:char):string;
  254. var
  255. s : string;
  256. i : longint;
  257. begin
  258. i:=length(p);
  259. if addch<>#0 then
  260. begin
  261. inc(i);
  262. s:=p+addch;
  263. end
  264. else
  265. s:=p;
  266. if i<8 then
  267. PadTabs:=s+#9#9
  268. else
  269. PadTabs:=s+#9;
  270. end;
  271. procedure ti386intasmlist.WriteTree(p:paasmoutput);
  272. const
  273. allocstr : array[boolean] of string[10]=(' released',' allocated');
  274. var
  275. s,
  276. prefix,
  277. suffix : string;
  278. hp : pai;
  279. counter,
  280. lines,
  281. i,j,l : longint;
  282. consttyp : tait;
  283. found,
  284. quoted : boolean;
  285. sep : char;
  286. begin
  287. if not assigned(p) then
  288. exit;
  289. hp:=pai(p^.first);
  290. while assigned(hp) do
  291. begin
  292. case hp^.typ of
  293. ait_comment : Begin
  294. AsmWrite(target_asm.comment);
  295. AsmWritePChar(pai_asm_comment(hp)^.str);
  296. AsmLn;
  297. End;
  298. ait_regalloc,
  299. ait_tempalloc : ;
  300. ait_section : begin
  301. if LastSec<>sec_none then
  302. AsmWriteLn('_'+target_asm.secnames[LastSec]+#9#9'ENDS');
  303. if pai_section(hp)^.sec<>sec_none then
  304. begin
  305. AsmLn;
  306. AsmWriteLn('_'+target_asm.secnames[pai_section(hp)^.sec]+#9#9+
  307. 'SEGMENT'#9'PARA PUBLIC USE32 '''+
  308. target_asm.secnames[pai_section(hp)^.sec]+'''');
  309. end;
  310. LastSec:=pai_section(hp)^.sec;
  311. end;
  312. ait_align : begin
  313. { CAUSES PROBLEMS WITH THE SEGMENT DEFINITION }
  314. { SEGMENT DEFINITION SHOULD MATCH TYPE OF ALIGN }
  315. { HERE UNDER TASM! }
  316. AsmWriteLn(#9'ALIGN '+tostr(pai_align(hp)^.aligntype));
  317. end;
  318. ait_datablock : begin
  319. if pai_datablock(hp)^.is_global then
  320. AsmWriteLn(#9'PUBLIC'#9+pai_datablock(hp)^.sym^.name);
  321. AsmWriteLn(PadTabs(pai_datablock(hp)^.sym^.name,#0)+'DB'#9+tostr(pai_datablock(hp)^.size)+' DUP(?)');
  322. end;
  323. ait_const_32bit,
  324. ait_const_8bit,
  325. ait_const_16bit : begin
  326. AsmWrite(ait_const2str[hp^.typ]+tostr(pai_const(hp)^.value));
  327. consttyp:=hp^.typ;
  328. l:=0;
  329. repeat
  330. found:=(not (Pai(hp^.next)=nil)) and (Pai(hp^.next)^.typ=consttyp);
  331. if found then
  332. begin
  333. hp:=Pai(hp^.next);
  334. s:=','+tostr(pai_const(hp)^.value);
  335. AsmWrite(s);
  336. inc(l,length(s));
  337. end;
  338. until (not found) or (l>line_length);
  339. AsmLn;
  340. end;
  341. ait_const_symbol : begin
  342. AsmWriteLn(#9#9'DD'#9'offset '+pai_const_symbol(hp)^.sym^.name);
  343. if pai_const_symbol(hp)^.offset>0 then
  344. AsmWrite('+'+tostr(pai_const_symbol(hp)^.offset))
  345. else if pai_const_symbol(hp)^.offset<0 then
  346. AsmWrite(tostr(pai_const_symbol(hp)^.offset));
  347. AsmLn;
  348. end;
  349. ait_const_rva : begin
  350. AsmWriteLn(#9#9'RVA'#9+pai_const_symbol(hp)^.sym^.name);
  351. end;
  352. ait_real_32bit : AsmWriteLn(#9#9'DD'#9+single2str(pai_real_32bit(hp)^.value));
  353. ait_real_64bit : AsmWriteLn(#9#9'DQ'#9+double2str(pai_real_64bit(hp)^.value));
  354. ait_real_80bit : AsmWriteLn(#9#9'DT'#9+extended2str(pai_real_80bit(hp)^.value));
  355. ait_comp_64bit : AsmWriteLn(#9#9'DQ'#9+comp2str(pai_real_80bit(hp)^.value));
  356. ait_string : begin
  357. counter := 0;
  358. lines := pai_string(hp)^.len div line_length;
  359. { separate lines in different parts }
  360. if pai_string(hp)^.len > 0 then
  361. Begin
  362. for j := 0 to lines-1 do
  363. begin
  364. AsmWrite(#9#9'DB'#9);
  365. quoted:=false;
  366. for i:=counter to counter+line_length do
  367. begin
  368. { it is an ascii character. }
  369. if (ord(pai_string(hp)^.str[i])>31) and
  370. (ord(pai_string(hp)^.str[i])<128) and
  371. (pai_string(hp)^.str[i]<>'"') then
  372. begin
  373. if not(quoted) then
  374. begin
  375. if i>counter then
  376. AsmWrite(',');
  377. AsmWrite('"');
  378. end;
  379. AsmWrite(pai_string(hp)^.str[i]);
  380. quoted:=true;
  381. end { if > 31 and < 128 and ord('"') }
  382. else
  383. begin
  384. if quoted then
  385. AsmWrite('"');
  386. if i>counter then
  387. AsmWrite(',');
  388. quoted:=false;
  389. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  390. end;
  391. end; { end for i:=0 to... }
  392. if quoted then AsmWrite('"');
  393. AsmWrite(target_os.newline);
  394. counter := counter+line_length;
  395. end; { end for j:=0 ... }
  396. { do last line of lines }
  397. AsmWrite(#9#9'DB'#9);
  398. quoted:=false;
  399. for i:=counter to pai_string(hp)^.len-1 do
  400. begin
  401. { it is an ascii character. }
  402. if (ord(pai_string(hp)^.str[i])>31) and
  403. (ord(pai_string(hp)^.str[i])<128) and
  404. (pai_string(hp)^.str[i]<>'"') then
  405. begin
  406. if not(quoted) then
  407. begin
  408. if i>counter then
  409. AsmWrite(',');
  410. AsmWrite('"');
  411. end;
  412. AsmWrite(pai_string(hp)^.str[i]);
  413. quoted:=true;
  414. end { if > 31 and < 128 and " }
  415. else
  416. begin
  417. if quoted then
  418. AsmWrite('"');
  419. if i>counter then
  420. AsmWrite(',');
  421. quoted:=false;
  422. AsmWrite(tostr(ord(pai_string(hp)^.str[i])));
  423. end;
  424. end; { end for i:=0 to... }
  425. if quoted then
  426. AsmWrite('"');
  427. end;
  428. AsmLn;
  429. end;
  430. ait_label : begin
  431. if pai_label(hp)^.l^.is_used then
  432. begin
  433. AsmWrite(pai_label(hp)^.l^.name);
  434. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  435. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  436. ait_const_symbol,ait_const_rva,
  437. ait_real_32bit,ait_real_64bit,ait_real_80bit,ait_comp_64bit,ait_string]) then
  438. AsmWriteLn(':');
  439. end;
  440. end;
  441. ait_direct : begin
  442. AsmWritePChar(pai_direct(hp)^.str);
  443. AsmLn;
  444. end;
  445. ait_symbol : begin
  446. if pai_symbol(hp)^.is_global then
  447. AsmWriteLn(#9'PUBLIC'#9+pai_symbol(hp)^.sym^.name);
  448. AsmWrite(pai_symbol(hp)^.sym^.name);
  449. if assigned(hp^.next) and not(pai(hp^.next)^.typ in
  450. [ait_const_32bit,ait_const_16bit,ait_const_8bit,
  451. ait_const_symbol,ait_const_rva,
  452. ait_real_32bit,ait_real_64bit,ait_real_80bit,ait_comp_64bit,ait_string]) then
  453. AsmWriteLn(':')
  454. end;
  455. ait_symbol_end : begin
  456. end;
  457. ait_instruction : begin
  458. { Must be done with args in ATT order }
  459. paicpu(hp)^.CheckNonCommutativeOpcodes;
  460. { We need intel order, no At&t }
  461. paicpu(hp)^.SwapOperands;
  462. { Reset }
  463. suffix:='';
  464. prefix:= '';
  465. s:='';
  466. { We need to explicitely set
  467. word prefix to get selectors
  468. to be pushed in 2 bytes PM }
  469. if (paicpu(hp)^.opsize=S_W) and
  470. ((paicpu(hp)^.opcode=A_PUSH) or
  471. (paicpu(hp)^.opcode=A_POP)) and
  472. (paicpu(hp)^.oper[0].typ=top_reg) and
  473. ((paicpu(hp)^.oper[0].reg>=firstsreg) and
  474. (paicpu(hp)^.oper[0].reg<=lastsreg)) then
  475. AsmWriteln(#9#9'DB'#9'066h');
  476. { added prefix instructions, must be on same line as opcode }
  477. if (paicpu(hp)^.ops = 0) and
  478. ((paicpu(hp)^.opcode = A_REP) or
  479. (paicpu(hp)^.opcode = A_LOCK) or
  480. (paicpu(hp)^.opcode = A_REPE) or
  481. (paicpu(hp)^.opcode = A_REPNZ) or
  482. (paicpu(hp)^.opcode = A_REPZ) or
  483. (paicpu(hp)^.opcode = A_REPNE)) then
  484. Begin
  485. prefix:=int_op2str[paicpu(hp)^.opcode]+#9;
  486. hp:=Pai(hp^.next);
  487. { this is theorically impossible... }
  488. if hp=nil then
  489. begin
  490. s:=#9#9+prefix;
  491. AsmWriteLn(s);
  492. break;
  493. end;
  494. { nasm prefers prefix on a line alone }
  495. AsmWriteln(#9#9+prefix);
  496. prefix:='';
  497. end
  498. else
  499. prefix:= '';
  500. if paicpu(hp)^.ops<>0 then
  501. begin
  502. if is_calljmp(paicpu(hp)^.opcode) then
  503. s:=#9+getopstr_jmp(paicpu(hp)^.oper[0])
  504. else
  505. begin
  506. for i:=0to paicpu(hp)^.ops-1 do
  507. begin
  508. if i=0 then
  509. sep:=#9
  510. else
  511. sep:=',';
  512. s:=s+sep+getopstr(paicpu(hp)^.oper[i],paicpu(hp)^.opsize,paicpu(hp)^.opcode,(i=2));
  513. end;
  514. end;
  515. end;
  516. AsmWriteLn(#9#9+prefix+int_op2str[paicpu(hp)^.opcode]+cond2str[paicpu(hp)^.condition]+suffix+s);
  517. end;
  518. {$ifdef GDB}
  519. ait_stabn,
  520. ait_stabs,
  521. ait_force_line,
  522. ait_stab_function_name : ;
  523. {$endif GDB}
  524. ait_cut : begin
  525. { only reset buffer if nothing has changed }
  526. if AsmSize=AsmStartSize then
  527. AsmClear
  528. else
  529. begin
  530. if LastSec<>sec_none then
  531. AsmWriteLn('_'+target_asm.secnames[LastSec]+#9#9'ENDS');
  532. AsmLn;
  533. AsmWriteLn(#9'END');
  534. AsmClose;
  535. DoAssemble;
  536. AsmCreate(pai_cut(hp)^.place);
  537. end;
  538. { avoid empty files }
  539. while assigned(hp^.next) and (pai(hp^.next)^.typ in [ait_cut,ait_section,ait_comment]) do
  540. begin
  541. if pai(hp^.next)^.typ=ait_section then
  542. begin
  543. lastsec:=pai_section(hp^.next)^.sec;
  544. end;
  545. hp:=pai(hp^.next);
  546. end;
  547. AsmWriteLn(#9'.386p');
  548. { I was told that this isn't necesarry because }
  549. { the labels generated by FPC are unique (FK) }
  550. { AsmWriteLn(#9'LOCALS '+target_asm.labelprefix); }
  551. if lastsec<>sec_none then
  552. AsmWriteLn('_'+target_asm.secnames[lastsec]+#9#9+
  553. 'SEGMENT'#9'PARA PUBLIC USE32 '''+
  554. target_asm.secnames[lastsec]+'''');
  555. AsmStartSize:=AsmSize;
  556. end;
  557. ait_marker: ;
  558. else
  559. internalerror(10000);
  560. end;
  561. hp:=pai(hp^.next);
  562. end;
  563. end;
  564. var
  565. currentasmlist : PAsmList;
  566. procedure writeexternal(p:pnamedindexobject);{$ifndef FPC}far;{$endif}
  567. begin
  568. if pasmsymbol(p)^.defbind=AB_EXTERNAL then
  569. currentasmlist^.AsmWriteln(#9'EXTRN'#9+p^.name);
  570. end;
  571. procedure ti386intasmlist.WriteExternals;
  572. begin
  573. currentasmlist:=@self;
  574. AsmSymbolList^.foreach({$ifndef VER70}@{$endif}writeexternal);
  575. end;
  576. procedure ti386intasmlist.WriteAsmList;
  577. begin
  578. {$ifdef EXTDEBUG}
  579. if assigned(current_module^.mainsource) then
  580. comment(v_info,'Start writing intel-styled assembler output for '+current_module^.mainsource^);
  581. {$endif}
  582. LastSec:=sec_none;
  583. AsmWriteLn(#9'.386p');
  584. AsmWriteLn(#9'LOCALS '+target_asm.labelprefix);
  585. AsmWriteLn('DGROUP'#9'GROUP'#9'_BSS,_DATA');
  586. AsmWriteLn(#9'ASSUME'#9'CS:_CODE,ES:DGROUP,DS:DGROUP,SS:DGROUP');
  587. AsmLn;
  588. countlabelref:=false;
  589. WriteExternals;
  590. { INTEL ASM doesn't support stabs
  591. WriteTree(debuglist);}
  592. WriteTree(codesegment);
  593. WriteTree(datasegment);
  594. WriteTree(consts);
  595. WriteTree(rttilist);
  596. WriteTree(resourcestringlist);
  597. WriteTree(bsssegment);
  598. countlabelref:=true;
  599. AsmWriteLn(#9'END');
  600. AsmLn;
  601. {$ifdef EXTDEBUG}
  602. if assigned(current_module^.mainsource) then
  603. comment(v_info,'Done writing intel-styled assembler output for '+current_module^.mainsource^);
  604. {$endif EXTDEBUG}
  605. end;
  606. end.
  607. {
  608. $Log$
  609. Revision 1.5 2000-08-27 16:11:49 peter
  610. * moved some util functions from globals,cobjects to cutils
  611. * splitted files into finput,fmodule
  612. Revision 1.4 2000/08/20 17:38:21 peter
  613. * smartlinking fixed for linux (merged)
  614. Revision 1.3 2000/07/13 12:08:24 michael
  615. + patched to 1.1.0 with former 1.09patch from peter
  616. Revision 1.2 2000/07/13 11:32:30 michael
  617. + removed logs
  618. }