[Wisp-cvs] wisp/users/dig make-pe-exe.py,1.16,1.17
Status: Alpha
Brought to you by:
digg
|
From: <di...@us...> - 2003-05-05 21:06:44
|
Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv28033
Modified Files:
make-pe-exe.py
Log Message:
minor cleanup: moved initialization of base_address nearer to its actual usage point
Index: make-pe-exe.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/make-pe-exe.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- make-pe-exe.py 1 May 2003 20:52:30 -0000 1.16
+++ make-pe-exe.py 5 May 2003 21:06:40 -0000 1.17
@@ -250,8 +250,6 @@
e.emit_string('PE\0\0')
e.paste(None, make_coff_header())
e.paste(None, make_pe_aout_header())
-base_address = 0x00400000
-memory_boundary = base_address
for s in sectnames:
e.paste(None, make_section_header(s))
e.place_symbol('!' + s + '/reloc', 0)
@@ -320,6 +318,8 @@
istubs.emit_tetra_sum(['&.imports/slot/' + sym + '@' + dll])
# paste sections together
+base_address = 0x00400000
+memory_boundary = base_address
for s in sectnames:
# file alignment
e.align(512)
|