SOURCES: binutils-absolute-gnu_debuglink-path.patch (NEW) - don't ...

pluto pluto at pld-linux.org
Sat Sep 2 10:49:26 CEST 2006


Author: pluto                        Date: Sat Sep  2 08:49:26 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't strip path from objcopy:--add-gnu-debuglink option.

---- Files affected:
SOURCES:
   binutils-absolute-gnu_debuglink-path.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/binutils-absolute-gnu_debuglink-path.patch
diff -u /dev/null SOURCES/binutils-absolute-gnu_debuglink-path.patch:1.1
--- /dev/null	Sat Sep  2 10:49:26 2006
+++ SOURCES/binutils-absolute-gnu_debuglink-path.patch	Sat Sep  2 10:49:21 2006
@@ -0,0 +1,34 @@
+--- binutils-2.17.50.0.3/bfd/opncls.c.orig	2006-07-15 20:23:49.000000000 +0200
++++ binutils-2.17.50.0.3/bfd/opncls.c	2006-09-02 10:21:33.212591250 +0200
+@@ -1215,6 +1215,10 @@
+       return NULL;
+     }
+ 
++  /* PLD: check the possible absolute debuginfo path (e.g. /usr/lib/debug/... */
++  if (separate_debug_file_exists (basename, crc32))
++    return basename;
++
+   dir = strdup (abfd->filename);
+   if (dir == NULL)
+     {
+@@ -1353,9 +1357,6 @@
+       return NULL;
+     }
+ 
+-  /* Strip off any path components in filename.  */
+-  filename = lbasename (filename);
+-
+   sect = bfd_get_section_by_name (abfd, GNU_DEBUGLINK);
+   if (sect)
+     {
+@@ -1439,10 +1440,6 @@
+     crc32 = bfd_calc_gnu_debuglink_crc32 (crc32, buffer, count);
+   fclose (handle);
+ 
+-  /* Strip off any path components in filename,
+-     now that we no longer need them.  */
+-  filename = lbasename (filename);
+-
+   debuglink_size = strlen (filename) + 1;
+   debuglink_size += 3;
+   debuglink_size &= ~3;
================================================================


More information about the pld-cvs-commit mailing list