https://sourceware.org/bugzilla/show_bug.cgi?id=20876
--- Comment #6 from Matthias Klose <doko at debian dot org> ---
applying this on top of your patch works for me. The global debug directory
doesn't have the dirname of the original file, so don't append `canon_dir'.
Not sure if that needs to be stripped from the tests with EXTRA_DEBUG_ROOT1 and
EXTRA_DEBUG_ROOT2 prefixes as well?
--- bfd/opncls.c~ 2017-01-11 20:29:07.061189932 +0100
+++ bfd/opncls.c 2017-01-11 21:39:51.211288793 +0100
@@ -1481,11 +1481,8 @@
/* Then try in the global debugfile directory. */
strcpy (debugfile, debug_file_directory);
dirlen = strlen (debug_file_directory) - 1;
- if (dirlen > 0
- && debug_file_directory[dirlen] != '/'
- && canon_dir[0] != '/')
+ if (dirlen > 0 && debug_file_directory[dirlen] != '/')
strcat (debugfile, "/");
- strcat (debugfile, canon_dir);
strcat (debugfile, base);
if (check_func (debugfile, crc32))
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils