Hi all, >> but when using the CodeWarrior assembler then there's still one file >> broken:
>> mwasmnlm -maxerrors 20 -o crypto/rc4/asm/r4-nw.o crypto/rc4/asm/r4-nw.asm >> ### mwasmnlm Assembler: >> # File: crypto\rc4\asm\r4-nw.asm >> # --------------------------------- >> # 112: lea esi,BYTE PTR [1+esi] >> # Error: ^^^^^^^^^^^^^^^^ >> # Invalid operand size >> ### mwasmnlm Driver Error: >> # The tool did not produce any output while compiling the file >> # 'crypto\rc4\asm\r4-nw.asm' >> Errors caused tool to abort. > ok, I think I found the place were to fix this: > --- rc4-586.pl.orig Thu Apr 26 22:00:56 2007 > +++ rc4-586.pl Mon Nov 26 21:56:37 2007 > @@ -143,7 +143,7 @@ > &movz ($ty,&BP(0,$dat,$ty)); > &add (&LB($xx),1); > &xor (&LB($ty),&BP(0,$inp)); > - &lea ($inp,&BP(1,$inp)); > + &lea ($inp,&DWP(1,$inp)); > &movz ($tx,&BP(0,$dat,$xx)); > &cmp ($inp,&wparam(1)); > &mov (&BP(-1,$out,$inp),&LB($ty)); > can someone with ASM insight please comment on the correctness of this > patch? While the above patch seems to work -- at least all tests pass with that, I've still another problem with CodeWarrior Assembler in the ripemd asm code; with the tests it crashes while executing the command: openssl2 verify -CAfile \openssl\test_out\cert.tmp /openssl/certs/RegTP-5R.pem When I compile with nasm all works fine.... here are the asm files which get generated from the perlasm stuff: asm code for NASM (working): http://www.gknw.net/test/openssl/0.9.8-stable/nasm/rm-nw.asm object code disassembled with ndisasm: http://www.gknw.net/test/openssl/0.9.8-stable/nasm/rm-nw.dis asm code for Metrowerks Assembler (abending): http://www.gknw.net/test/openssl/0.9.8-stable/mwasm/rm-nw.asm object code disassembled with ndisasm: http://www.gknw.net/test/openssl/0.9.8-stable/mwasm/rm-nw.dis server abend log: http://www.gknw.net/test/openssl/0.9.8-stable/ABEND.LOG dump from binary: http://www.gknw.net/test/openssl/0.9.8-stable/openssl2.txt any hints greatly appreciated!! thanks, Guenter. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]