[Wisp-cvs] wisp/users/dig elf.py,1.39,1.40
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-27 12:56:20
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv17208 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.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- elf.py 27 Apr 2003 12:54:15 -0000 1.39 +++ elf.py 27 Apr 2003 12:56:17 -0000 1.40 @@ -347,10 +347,10 @@ h.emit_tetra_sum(['!elf/proghdr']) h.emit_tetra_sum(['!elf/secthdr']) h.emit_tetra_sum(['#elf/flags']) - h.emit_wyde(0x34) # e_ehsize - h.emit_wyde(32) # e_phentsize + h[::2] = 0x34 # e_ehsize + h[::2] = 32 # e_phentsize h.emit_wyde_sum(['#elf/phnum']) - h.emit_wyde(40) # e_shentsize + h[::2] = 40 # e_shentsize h.emit_wyde_sum(['#elf/shnum']) h.emit_wyde_sum(['#elf/shstrndx']) return h @@ -426,7 +426,7 @@ this.emit_tetra(0) # st_size this[::1] = STB.GLOBAL << 4 | STT.NOTYPE this[::1] = 0 # st_other; reserved - this.emit_wyde(section) + this[::2] = section this._index += 1 return this._index |