[Wisp-cvs] wisp/users/dig elf.py,1.44,1.45
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-27 13:09:05
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv23925 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.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- elf.py 27 Apr 2003 13:07:50 -0000 1.44 +++ elf.py 27 Apr 2003 13:09:02 -0000 1.45 @@ -342,12 +342,10 @@ if not reloc: h[::4] = '&_start', '!elf/proghdr' else: h[::4] = 0, 0 h[::4] = '!elf/secthdr', '#elf/flags' - h[::2] = 0x34 # e_ehsize - h[::2] = 32 # e_phentsize - h.emit_wyde_sum(['#elf/phnum']) + h[::2] = 0x34, 32 # e_ehsize, e_phentsize + h[::2] = '#elf/phnum' h[::2] = 40 # e_shentsize - h.emit_wyde_sum(['#elf/shnum']) - h.emit_wyde_sum(['#elf/shstrndx']) + h[::2] = '#elf/shnum', '#elf/shstrndx' return h def make_ELF32_phtable (byte_order, names): |