[Wisp-cvs] wisp/users/dig make-pe-exe.py,1.20,1.21
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-05-10 17:29:53
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv6605 Modified Files: make-pe-exe.py Log Message: introduced the #rva global symbol to get rid of the % prefix Index: make-pe-exe.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/make-pe-exe.py,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- make-pe-exe.py 6 May 2003 16:43:33 -0000 1.20 +++ make-pe-exe.py 10 May 2003 17:29:50 -0000 1.21 @@ -115,7 +115,7 @@ t.emit_string(name[:8]) t.emit_string('\0' * max(0, 8 - len(name))) t.emit_tetra_sum(['#' + name + '/memsz']) - t.emit_tetra_sum(['%' + name]) + t.emit_tetra_sum(['&' + name, '#rva']) t.emit_tetra_sum(['#' + name + '/filesz']) t.emit_tetra_sum(['!' + name]) t.emit_tetra_sum(['!' + name + '/reloc']) @@ -354,6 +354,7 @@ e.place_symbol('#aout/data-size', roundup(data.memsz(), 0x200)) e.place_symbol('#aout/bss-size', roundup(bss.memsz(), 0x200)) e.place_symbol('#aout/image-base', 0x00400000) +e.place_symbol('#rva', -0x00400000) # adding this to an address will yield RVA e.place_symbol('#aout/memory-align', 4096) e.place_symbol('#aout/file-align', 512) # 4.0 = MSW95 |