Browse Source

elf_mem_map: uniquify file names in qdirstat output

Yuri D'Elia 3 years ago
parent
commit
d98e1b1cd9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/elf_mem_map

+ 2 - 0
tools/elf_mem_map

@@ -350,6 +350,8 @@ def print_qdirstat(grefs):
                 base[name] = {}
             base = base[name]
         name = paths[-1]
+        if name in base:
+            name = '{}_{:x}'.format(entry.name, entry.loc)
         base[name] = entry.size
 
     def walker(root, prefix):