diff options
Diffstat (limited to 'elf.py')
| -rwxr-xr-x | elf.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -90,13 +90,13 @@ if __name__ == "__main__": (name, addr) = line['segment'] segment = { 'name': name, 'addr': addr, 'content': [] } segments.append(segment) - elif line['type'] == 'instr': + elif line['type'] == 'data': if segment == None: raise ValueError("label or code outside of segment!") - segment['content'] += line['instr'] + segment['content'] += line['data'] else: - raise ValueError("elf input should contain only segments and instructions!") + raise ValueError("elf input should contain only segments and data!") cursor = 0 |
