aboutsummaryrefslogtreecommitdiffstats
path: root/elf.py
diff options
context:
space:
mode:
Diffstat (limited to 'elf.py')
-rwxr-xr-xelf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf.py b/elf.py
index a3379c5..4427263 100755
--- a/elf.py
+++ b/elf.py
@@ -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