From d98e1b1cd98faab573413e6e31e97f2f8198b92d Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sat, 5 Jun 2021 23:03:56 +0200 Subject: [PATCH] elf_mem_map: uniquify file names in qdirstat output --- tools/elf_mem_map | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/elf_mem_map b/tools/elf_mem_map index 65a95732..f3ea03d0 100755 --- a/tools/elf_mem_map +++ b/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):