TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rinat Sadretdinow
from: Mike Bilow
date: 1996-01-16 14:52:40
subject: EXE compressor/encryptor for OS/2

Rinat Sadretdinow wrote in a message to Mike Bilow:

 MB> If applications try to do their own code compression, then very bad
 MB> things will happen.

 RS> But it is still possible (I hope). I see the only way to
 RS> reach this (maybe someone guess another path): a little stub
 RS> allocates enough memory to store all the unpacked exe code
 RS> and second stub, unpacks the application segments into it,
 RS> calls DosCreateCSAlias, and then jumps to the second stub.

DosCreateCSAlias() is not intended to be used by 32-bit programs.

 RS>> Yes, but unfortunately REPACK does not pack all programs
 RS>> properly. Sometimes it turns them into unexecutable stuff
 RS>> without possibility to restore original code :-(

 MB> This is the first I've heard of this.  I've had some extensive
 MB> discussions with IBM about REPACK, and they are not aware of any such
 MB> problems.  Can you provide an example?

 RS> Sorry, it was my miss. I repacked wpp386.exe and did not
 RS> mention it had its own loader that incompatible with
 RS> standard OS/2 LX files. As the result I got exe file about 7
 RS> kilobytes long and it could not be executed by OS/2. 

Oh, the Watcom compilers are very special programs.  Watcom provides a
single main program for all platforms, and then provides a small loader
which runs on each platform.  I can't think of any other program which does
this.  Anything you make with LINK386 should be supported by REPACK.
 
-- Mike


--- 
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 323/107 170/400 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.