$ cmd /c env sh drv.sh -r f:/mingw/bin/gcc -g -c -Wall -O2 -o "itvsaa.o" "z:/home/malc/xsrc/windrv\itvsaa.c" f:/mingw/bin/gcc -Wl,--base-file,base.tmp -Wl,--entry,_driver_entry@8 -nostartfiles -nostdlib -o junk.tmp "itvsaa.o" -lntoskrnl -lhal rm -f junk.tmp dlltool --as=as --dllname itvsaa.sys --base-file base.tmp --output-exp temp.exp rm -f base.tmp f:/mingw/bin/gcc -Wl,--subsystem,native -Wl,--image-base,0x10000 -Wl,--file-alignment,0x1000 -Wl,--section-alignment,0x1000 -Wl,--entry,_driver_entry@8 -Wl,--stack,0x40000 -Wl,temp.exp -mdll -nostartfiles -nostdlib -o itvsaa.sys "itvsaa.o" -lntoskrnl -lhal rm -f temp.exp