summaryrefslogtreecommitdiff
path: root/tools/unnamed.py
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-05-23 18:37:43 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-05-23 18:37:43 -0400
commitb11b9e09689e594197d941cb44a0db0b8277825d (patch)
tree8b092e3d620f2ec5f01508bc7b194a0f88580a26 /tools/unnamed.py
parent05925cba37019d93f1c847015f4fbc1de110c200 (diff)
parent653b62139d9447b7bdcc116a44ad13f3c1c63f1a (diff)
Merge remote-tracking branch 'remotes/pokered/master'
Diffstat (limited to 'tools/unnamed.py')
-rwxr-xr-xtools/unnamed.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/unnamed.py b/tools/unnamed.py
index db743051..d3a8b6bf 100755
--- a/tools/unnamed.py
+++ b/tools/unnamed.py
@@ -82,14 +82,14 @@ for objfile in objects:
elif magic == b'RGB9':
obj_ver = 10 + unpack_file("<I", f)[0]
- if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17]:
+ if obj_ver not in [6, 10, 11, 12, 13, 15, 16, 17, 18]:
print("Error: File '%s' is of an unknown format." % objfile, file=stderr)
exit(1)
num_symbols = unpack_file("<I", f)[0]
unpack_file("<I", f) # skip num sections
- if obj_ver in [16, 17]:
+ if obj_ver in [16, 17, 18]:
node_filenames = []
num_nodes = unpack_file("<I", f)[0]
for x in range(num_nodes):
@@ -109,7 +109,7 @@ for objfile in objects:
sym_type = symtype(unpack_file("<B", f)[0] & 0x7f)
if sym_type == symtype.IMPORT:
continue
- if obj_ver in [16, 17]:
+ if obj_ver in [16, 17, 18]:
sym_fileno = unpack_file("<I", f)[0]
sym_filename = node_filenames[sym_fileno]
else: