]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2006-03-11 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Mar 2006 15:01:18 +0000 (15:01 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Mar 2006 15:01:18 +0000 (15:01 +0000)
PR ld/2443
* dwarf2.c (concat_filename): Don't issue an error if file is
0.

bfd/ChangeLog
bfd/dwarf2.c

index ac78ad60046abcb160db68941d8c84bac0b20e34..444a14ea0b8c25b78ecfd6e2c6711865e215bc5f 100644 (file)
@@ -1,3 +1,9 @@
+2006-03-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2443
+       * dwarf2.c (concat_filename): Don't issue an error if file is
+       0.
+
 2006-03-10  Paul Brook  <paul@codesourcery.com>
 
        * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
index 5bc587183ea27adf1c00b2c0e7742b8f8e9313e8..ae68d1886818f0bdc5ac0df6a9e691719d1706ca 100644 (file)
@@ -865,8 +865,10 @@ concat_filename (struct line_info_table *table, unsigned int file)
 
   if (file - 1 >= table->num_files)
     {
-      (*_bfd_error_handler)
-       (_("Dwarf Error: mangled line number section (bad file number)."));
+      /* FILE == 0 means unknown.  */
+      if (file)
+       (*_bfd_error_handler)
+         (_("Dwarf Error: mangled line number section (bad file number)."));
       return strdup ("<unknown>");
     }