]> git.pld-linux.org Git - packages/crossppc-binutils.git/commitdiff
- reworked. resizing section works now. auto/th/binutils-2_17_50_0_3-1_1 auto/th/binutils-2_17_50_0_3-2 auto/th/binutils-2_17_50_0_3-2_1 auto/th/binutils-2_17_50_0_3-2_2 auto/th/binutils-2_17_50_0_3-2_3
authorPaweł Sikora <pluto@pld-linux.org>
Sat, 2 Sep 2006 17:54:43 +0000 (17:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binutils-absolute-gnu_debuglink-path.patch -> 1.3

binutils-absolute-gnu_debuglink-path.patch

index d4c147d16bf2c9e1783504a3fe5b244e9f81e3d2..9622b5895c2aabe95290c1cf6a9e17cf842a0869 100644 (file)
@@ -1,5 +1,5 @@
 --- 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 15:14:01.443277250 +0200
++++ binutils-2.17.50.0.3/bfd/opncls.c  2006-09-02 19:50:45.155718000 +0200
 @@ -1215,6 +1215,10 @@
        return NULL;
      }
    dir = strdup (abfd->filename);
    if (dir == NULL)
      {
-@@ -1353,9 +1357,6 @@
+@@ -1322,6 +1326,15 @@
+   return find_separate_debug_file (abfd, dir);
+ }
++static char const*
++relaxed_filename (char const* filename)
++{
++  char const* relaxed = strstr (filename, "/usr/lib/debug/");
++  if ( relaxed != NULL )
++    return relaxed;
++  return filename;
++}
++
+ /*
+ FUNCTION
+       bfd_create_gnu_debuglink_section
+@@ -1353,8 +1366,7 @@
        return NULL;
      }
  
 -  /* Strip off any path components in filename.  */
 -  filename = lbasename (filename);
--
++  filename = relaxed_filename (filename);
    sect = bfd_get_section_by_name (abfd, GNU_DEBUGLINK);
    if (sect)
-     {
-@@ -1439,9 +1440,10 @@
+@@ -1439,9 +1451,7 @@
      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);
-+  /* PLD: for files installed in rpm's build root strip the install prefix */
-+  char const* relaxed_filename = strstr( filename, "/usr/lib/debug/" );
-+  if ( relaxed_filename != NULL )
-+    filename = relaxed_filename;
++  filename = relaxed_filename (filename);
  
    debuglink_size = strlen (filename) + 1;
    debuglink_size += 3;
This page took 0.146364 seconds and 4 git commands to generate.