diff --git a/tests/data/test-diff-pkg/dbus-glib-0.104-3.fc23.x86_64--dbus-glib-0.104-3.fc23.armv7hl-report-0.txt b/tests/data/test-diff-pkg/dbus-glib-0.104-3.fc23.x86_64--dbus-glib-0.104-3.fc23.armv7hl-report-0.txt
index 8bd25704..b72d855b 100644
--- a/tests/data/test-diff-pkg/dbus-glib-0.104-3.fc23.x86_64--dbus-glib-0.104-3.fc23.armv7hl-report-0.txt
+++ b/tests/data/test-diff-pkg/dbus-glib-0.104-3.fc23.x86_64--dbus-glib-0.104-3.fc23.armv7hl-report-0.txt
@@ -1,3 +1,12 @@
+================ changes of 'libdbus-glib-1.so.2.3.2'===============
+  ELF architecture changed
+  Functions changes summary: 0 Removed, 0 Changed, 0 Added function
+  Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
+
+  architecture changed from 'elf-amd-x86_64' to 'elf-arm'
+
+================ end of changes of 'libdbus-glib-1.so.2.3.2'===============
+
 ================ changes of 'dbus-binding-tool'===============
   ELF architecture changed
   Functions changes summary: 0 Removed, 0 Changed, 0 Added function
@@ -17,7 +26,3 @@
 
 ================ end of changes of 'dbus-binding-tool'===============
 
-Removed binaries:
-  [D] /usr/lib64/libdbus-glib-1.so.2.3.2, SONAME: libdbus-glib-1.so.2
-Added binaries:
-  [A] /usr/lib/libdbus-glib-1.so.2.3.2, SONAME: libdbus-glib-1.so.2
diff --git a/tools/abipkgdiff.cc b/tools/abipkgdiff.cc
index aae23577..5193f7c4 100644
--- a/tools/abipkgdiff.cc
+++ b/tools/abipkgdiff.cc
@@ -2850,11 +2850,11 @@ create_maps_of_package_set_content(const package_set_sptr& ps,
 	  // soname.  So let's *also* consider the full path of the
 	  // binary inside the extracted directory, not just the
 	  // soname.
-	  string key = e->soname;
+	  string key = string("/@soname:") + e->soname;
 
 	  if (must_compare_public_dso_only(ps, opts))
 	    {
-	      if (ps->public_dso_sonames().find(key)
+	      if (ps->public_dso_sonames().find(e->soname)
 		  == ps->public_dso_sonames().end())
 		{
 		  // We are instructed to compare public DSOs only and
@@ -2867,12 +2867,6 @@ create_maps_of_package_set_content(const package_set_sptr& ps,
 		}
 	    }
 
-	  if (ps->convert_path_to_unique_suffix(resolved_e_path, key))
-	    {
-	      dir_name(key, key);
-	      key += string("/@soname:") + e->soname;
-	    }
-
 	  if (ps->path_elf_file_sptr_map().find(key)
 	      != ps->path_elf_file_sptr_map().end())
 	    // 'key' has already been seen before.  So we won't do itl
