summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2008-10-14 18:30:48 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commite2a22cdb43d28447e2c7c28eba3c9f3ade1a3f48 (patch)
treea1ed2b1b8bcb3d75a8e14d144853dfcf888f4e3e
parent94a07261eccd38391d1702826a831b81f56dfdba (diff)
downloadcrossppc-binutils-e2a22cdb43d28447e2c7c28eba3c9f3ade1a3f48.zip
crossppc-binutils-e2a22cdb43d28447e2c7c28eba3c9f3ade1a3f48.tar.gz
Changed files: binutils-absolute-gnu_debuglink-path.patch -> 1.6
-rw-r--r--binutils-absolute-gnu_debuglink-path.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/binutils-absolute-gnu_debuglink-path.patch b/binutils-absolute-gnu_debuglink-path.patch
index eeaaaf8..f4d3144 100644
--- a/binutils-absolute-gnu_debuglink-path.patch
+++ b/binutils-absolute-gnu_debuglink-path.patch
@@ -1,16 +1,16 @@
---- binutils-2.15.94.0.2.2/bfd/opncls.c~ 2008-10-14 21:22:06.000000000 +0300
-+++ binutils-2.15.94.0.2.2/bfd/opncls.c 2008-10-14 21:24:48.052157688 +0300
-@@ -1141,6 +1141,10 @@
+--- binutils-2.18.50.0.2/bfd/opncls.c.orig 2007-10-03 17:52:57.000000000 +0200
++++ binutils-2.18.50.0.2/bfd/opncls.c 2007-10-22 22:30:03.233754376 +0200
+@@ -1241,6 +1241,10 @@
+ return NULL;
}
- BFD_ASSERT (strlen (dir) != 0);
+ /* PLD: check the possible absolute debuginfo path (e.g. /tmp/.../usr/lib/debug/... */
+ if (separate_debug_file_exists (basename, crc32))
+ return basename;
+
- /* Strip off filename part. */
- for (i = strlen (dir) - 1; i >= 0; i--)
- if (IS_DIR_SEPARATOR (dir[i]))
+ for (dirlen = strlen (abfd->filename); dirlen > 0; dirlen--)
+ if (IS_DIR_SEPARATOR (abfd->filename[dirlen - 1]))
+ break;
@@ -1345,6 +1349,15 @@
return find_separate_debug_file (abfd, dir);
}