Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv22954
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.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- elf.py 27 Apr 2003 13:00:45 -0000 1.42
+++ elf.py 27 Apr 2003 13:07:00 -0000 1.43
@@ -339,12 +339,8 @@
h.emit_wyde_sum(['#elf/type'])
h.emit_wyde_sum(['#elf/machine'])
h[::4] = EV.CURRENT
- if reloc:
- h[::4] = 0 # no &_start
- h[::4] = 0 # no !elf/proghdr
- else:
- h.emit_tetra_sum(['&_start'])
- h.emit_tetra_sum(['!elf/proghdr'])
+ if not reloc: h[::4] = '&_start', '!elf/proghdr'
+ else: h[::4] = 0, 0
h.emit_tetra_sum(['!elf/secthdr'])
h.emit_tetra_sum(['#elf/flags'])
h[::2] = 0x34 # e_ehsize
|