Mail Archives: djgpp/2001/02/17/10:04:17
Great!
However your ported version have some problems:
1. Try specify an alternative magic file with -m:
file -m t:/magic /djgpp/bin/ranlib.exe
file.exe: couldn't find any magic files!
I worked around this by using "/dev/t/" instead of "t:/".
2. It would be neat if you incorporated this:
# v >2, uses DPMI & small(2k) stub (Robert vd Boon, rjvdboon AT europe DOT com)
0x200 string go32stub DOS-executable compiled w/DJGPP
>0x20c string >0 (stub v%.4s)
>>0x8b2 string djp [compressed w/%s
>>>&1 string >\0 %.4s]
>>0x8ad string UPX [compressed w/%s
>>>&1 string >\0 %.4s]
>>0x1c string pmodedj stubbed with %s
3. If you do 2, you'll find a bug. In the line 365 of file.c you need
to open the files in binary mode. I don't know what else (if anything)
will be messed up from this change..
Right,
MartinS
- Raw text -