[Wisp-cvs] wisp/users/dig elf.py,1.57,1.58
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-05-17 11:11:33
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv21916 Modified Files: elf.py Log Message: fixed symbol values in ELF32 files Index: elf.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/elf.py,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- elf.py 17 May 2003 10:16:53 -0000 1.57 +++ elf.py 17 May 2003 11:11:30 -0000 1.58 @@ -605,7 +605,7 @@ symtab = sections['.symtab'] for symbol, value in section.get_symbols(): if symbol[0] == '&': # only process memory references - symtab.emit_entry(symbol, value, shentnames.index(name) + 1) + symtab.emit_entry(symbol, None, shentnames.index(name) + 1) memory_boundary += section.memsz() memory_boundary = (memory_boundary + 0xFFF) & ~0xFFF @@ -618,8 +618,3 @@ binary.place_symbol('#elf/shstrndx', shentnames.index('.shstrtab') + 1) binary.link() return binary - -# Thoughts of generating ELF32 files -# * In ELF parlance, linker notes are called relocations. -# We need to solve relocations only when generating an -# executable file. |