[Wisp-cvs] wisp/users/dig make-pe-exe.py,1.56,1.57
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-05-16 10:23:15
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv6027 Modified Files: make-pe-exe.py Log Message: attempt to create file(1)-friendly executables by placing the PE header at offset 0x80 Index: make-pe-exe.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/make-pe-exe.py,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- make-pe-exe.py 16 May 2003 10:13:29 -0000 1.56 +++ make-pe-exe.py 16 May 2003 10:23:12 -0000 1.57 @@ -232,6 +232,7 @@ e = Linkie('<'); e.glue(0, make_mz_prefix('OS too broken'), 0x100) +if e.memsz() < 0x80: e.align(0x80) # attempt to create a file(1)-friendly exe e.align(8) # PE header must be aligned to 8 e.place_symbol('!pe') e.emit_string('PE\0\0') |