[Wisp-cvs] wisp/users/dig elf.py,1.8,1.9
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-02-12 23:05:14
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv4698 Modified Files: elf.py Log Message: added some thoughts on generating ELF32 files Index: elf.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/elf.py,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- elf.py 8 Feb 2003 20:21:37 -0000 1.8 +++ elf.py 12 Feb 2003 23:05:08 -0000 1.9 @@ -378,3 +378,13 @@ h.emit_tetra_sum([name + '/alignment']) h.emit_tetra_sum([name + '/sh_entsize']) return h + +# Thoughts of generating ELF32 files +# * In ELF parlance, linker notes are called relocations. +# We need to solve relocations only when generating an +# executable file. +# * ELF symbols are defined relative to their corresponding sections' +# origins. Basically, a symbol's value consists of two parts: +# reference to its section and its location inside the section. +# * We'll need some symbols to represent offsets in the generated +# file. It's probably best to treat them as ELF absolute symbols. |