[Wisp-cvs] wisp/users/dig elf.py,1.49,1.50
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-27 18:00:22
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv6122 Modified Files: elf.py Log Message: use cleaner syntax in elf.py Index: elf.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/elf.py,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- elf.py 27 Apr 2003 17:55:54 -0000 1.49 +++ elf.py 27 Apr 2003 18:00:08 -0000 1.50 @@ -336,8 +336,7 @@ raise 'Invalid byte order', byte_order h[::1] = EV.CURRENT h.emit_string('\0' * 9) - h.emit_wyde_sum(['#elf/type']) - h.emit_wyde_sum(['#elf/machine']) + h[::2] = '#elf/type', '#elf/machine' h[::4] = EV.CURRENT if not reloc: h[::4] = '&_start', '!elf/proghdr' else: h[::4] = 0, 0 |