Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv9298
Modified Files:
linkie.py
Log Message:
dropped Linkie.set_origin
Index: linkie.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/linkie.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- linkie.py 12 May 2003 20:52:34 -0000 1.56
+++ linkie.py 13 May 2003 12:49:26 -0000 1.57
@@ -135,21 +135,6 @@
this._skipped += delta
else:
this._contents.fromstring(delta * '\0')
- def set_origin (this, origin):
- """set_origin(origin)
- Sets the 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
- for i in range(len(this._symbols)):
- symbol, value = this._symbols[i]
- if symbol[0] in '&':
- this._symbols[i] = symbol, value + delta
- this._origin = origin
def get_file (this, force = 0):
"""get_file() -> array of chars
|