[Wisp-cvs] wisp/users/dig elf.py,1.35,1.36 makehello.py,1.24,1.25
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-14 22:19:59
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv4004 Modified Files: elf.py makehello.py Log Message: less forcing Index: elf.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/elf.py,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- elf.py 14 Apr 2003 01:57:52 -0000 1.35 +++ elf.py 14 Apr 2003 22:19:55 -0000 1.36 @@ -564,7 +564,10 @@ offset = binary.filesz() - if want_relocatable or p_flags == 0: + if p_flags == 0: + section.set_origin(0) + binary.place_symbol('&' + name, 0) + elif want_relocatable: section.set_origin(0) else: address = memory_boundary | (offset & 0xFFF) Index: makehello.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/makehello.py,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- makehello.py 14 Apr 2003 21:59:25 -0000 1.24 +++ makehello.py 14 Apr 2003 22:19:55 -0000 1.25 @@ -29,7 +29,7 @@ hello.dump() f = open('hello', 'w') -hello.get_file(force = 1).tofile(f) +hello.get_file().tofile(f) f.close() print 'Without symbols' @@ -37,7 +37,7 @@ hellowosym.dump() f = open('hellowosym', 'w') -hellowosym.get_file(force = 1).tofile(f) +hellowosym.get_file().tofile(f) f.close() print 'Relocatable' |