Mercurial > lcfOS
diff python/ppci/objectfile.py @ 344:1378c4b027a0
Merge devel branch
author | Windel Bouwman |
---|---|
date | Sat, 01 Mar 2014 16:32:27 +0100 |
parents | 86b02c98a717 |
children | 9667d78ba79e |
line wrap: on
line diff
--- a/python/ppci/objectfile.py Fri Feb 21 13:35:07 2014 +0100 +++ b/python/ppci/objectfile.py Sat Mar 01 16:32:27 2014 +0100 @@ -17,6 +17,8 @@ class Relocation: + """ Represents a relocation entry. A relocation always has a symbol to refer to + and a relocation type """ def __init__(self, sym, offset, typ, section): self.sym = sym self.offset = offset @@ -64,6 +66,7 @@ return sym def add_relocation(self, sym_name, offset, typ, section): + assert type(sym_name) is str, str(sym_name) assert section in self.sections reloc = Relocation(sym_name, offset, typ, section) self.relocations.append(reloc)