From: <di...@us...> - 2003-05-11 07:06:50
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv27198 Modified Files: make-pe-exe.py Log Message: use cleaner syntax Index: make-pe-exe.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/make-pe-exe.py,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- make-pe-exe.py 11 May 2003 06:50:38 -0000 1.36 +++ make-pe-exe.py 11 May 2003 07:06:47 -0000 1.37 @@ -66,7 +66,7 @@ def make_coff_header (): h = Linkie('<') h.align(4) - h.emit_wyde_sum(['#coff/magic']) + h[::2] = '#coff/magic' # Known magic values: # 0x0000 unknown # 0x014C i80386 @@ -87,12 +87,9 @@ # 0x0284 Alpha AXP 64-bit # 0x0366 Mips with FPU # 0x0466 Mips 16 with FPU - h.emit_wyde_sum(['#coff/nscns']) - h.emit_tetra_sum(['#coff/timdat']) - h.emit_tetra_sum(['!coff/symptr']) - h.emit_tetra_sum(['#coff/nsyms']) - h.emit_wyde_sum(['#coff/opthdr']) - h.emit_wyde_sum(['#coff/flags']) + h[::2] = '#coff/nscns' + h[::4] = '#coff/timdat', '!coff/symptr', '#coff/nsyms' + h[::2] = '#coff/opthdr', '#coff/flags' # Flags for PE: # 0x0001 no relocations -- can only be loaded at the preferred address # 0x0002 executable |