shithub: pokered

Download patch

ref: bf81961b9d40c47ce2f7332e4cdaa9ca93fd93fc
parent: 955e4eddf8fdfbb68dad3ada8712faf6fb44a417
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Apr 17 15:20:14 EDT 2021

Fix tools/unnamed.py

--- a/tools/unnamed.py
+++ b/tools/unnamed.py
@@ -89,7 +89,7 @@
     num_symbols = unpack_file("<I", f)[0]
     unpack_file("<I", f) # skip num sections
 
-    if obj_ver in [16]:
+    if obj_ver in [16, 17]:
         node_filenames = []
         num_nodes = unpack_file("<I", f)[0]
         for x in range(num_nodes):
@@ -109,7 +109,7 @@
         sym_type = symtype(unpack_file("<B", f)[0] & 0x7f)
         if sym_type == symtype.IMPORT:
             continue
-        if obj_ver in [16]:
+        if obj_ver in [16, 17]:
             sym_fileno = unpack_file("<I", f)[0]
             sym_filename = node_filenames[sym_fileno]
         else: