Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv3767
Modified Files:
make-pe-exe.py
Log Message:
use clearer syntax
Index: make-pe-exe.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/make-pe-exe.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- make-pe-exe.py 13 May 2003 21:35:10 -0000 1.51
+++ make-pe-exe.py 13 May 2003 21:40:29 -0000 1.52
@@ -132,14 +132,14 @@
h[::4] = '#aout/image-base'
h[::4] = '#aout/memory-align'
# #aout/file-align must be a power of 2 in range of [512 ... 64Ki]
- h.emit_tetra_sum(['#aout/file-align'])
- h.emit_wyde_sum(['#aout/os-version-major'])
- h.emit_wyde_sum(['#aout/os-version-minor'])
- h.emit_wyde_sum(['#aout/image-version-major'])
- h.emit_wyde_sum(['#aout/image-version-minor'])
- h.emit_wyde_sum(['#aout/subsys-version-major'])
- h.emit_wyde_sum(['#aout/subsys-version-minor'])
- h.emit_tetra(0)
+ h[::4] = '#aout/file-align'
+ h[::2] = '#aout/os-version-major'
+ h[::2] = '#aout/os-version-minor'
+ h[::2] = '#aout/image-version-major'
+ h[::2] = '#aout/image-version-minor'
+ h[::2] = '#aout/subsys-version-major'
+ h[::2] = '#aout/subsys-version-minor'
+ h[::4] = 0
# &aout/image-end must be a multiple of #aout/memory-align
h.emit_tetra_sum(['&aout/image-end', '#rva'])
# !aout/header-end must be a multiple of #aout/file-align
|