Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv3719
Modified Files:
linkie.py make-pe-exe.py
Log Message:
dropped Linkie.set_secondary_origin
Index: linkie.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/linkie.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- linkie.py 10 May 2003 19:03:03 -0000 1.53
+++ linkie.py 11 May 2003 09:45:41 -0000 1.54
@@ -151,21 +151,6 @@
if symbol[0] in '&':
this._symbols[i] = symbol, value + delta
this._origin = origin
- def set_secondary_origin (this, origin):
- """set_secondary_origin(origin)
- Sets the secondary base address of the linkie to the specified
- value. Recalculates the %foo symbols. Does NOT influence
- already resolved references to changing labels, so be careful
- if using after partial linkage."""
- if (origin % this._alignment) != 0:
- raise 'New base address violates alignment', \
- (origin, this._alignment)
- delta = origin - this._origin_secondary
- for i in range(len(this._symbols)):
- symbol, value = this._symbols[i]
- if symbol[0] in '%':
- this._symbols[i] = symbol, value + delta
- this._origin_secondary = origin
def get_file (this, force = 0):
"""get_file() -> array of chars
Index: make-pe-exe.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/make-pe-exe.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- make-pe-exe.py 11 May 2003 07:35:47 -0000 1.39
+++ make-pe-exe.py 11 May 2003 09:45:42 -0000 1.40
@@ -319,9 +319,8 @@
# memory alignment
memory_boundary = roundup(memory_boundary, \
max(0x1000, sections[s].get_alignment()))
- # establish origins
+ # establish origin
sections[s].set_origin(memory_boundary)
- sections[s].set_secondary_origin(memory_boundary - base_address)
e.place_symbol('!' + s)
e.place_symbol('&' + s, memory_boundary)
# process sizes
|