(dwarf2_finish): Check for the existence of a file table before deciding to
authorNick Clifton <nickc@redhat.com>
Tue, 2 Nov 2004 09:49:25 +0000 (09:49 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 2 Nov 2004 09:49:25 +0000 (09:49 +0000)
 produce a .debug_line section to match up with a user provided .debug_info
 section.

gas/ChangeLog
gas/dwarf2dbg.c

index 51d6174e290ad368ba8dce621dd897ec7ca67bf7..11ada2e45de9fb3b0974a4f61c1b56809fa9b8e1 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-02  Nick Clifton  <nickc@redhat.com>
+
+       * dwarf2dbg.c (dwarf2_finish): Check for the existence of a file
+       table before deciding to produce a .debug_line section to match up
+       with a user provided .debug_info section.
+
 2004-10-28  Tomer Levi  <Tomer.Levi@nsc.com>
 
        * config/tc-crx.c (getreg_image): Bug fix, a return value was
index 59da56ab55a1c1d0d3f43da15f476a9aff9aa7bb..e1b7a8166fb7bb91167183077851ecb59e0f7075 100644 (file)
@@ -1363,7 +1363,8 @@ dwarf2_finish (void)
        below.  */
   if (all_segs == NULL
       && debug_type != DEBUG_DWARF2
-      && bfd_get_section_by_name (stdoutput, ".debug_info") == NULL)
+      && (bfd_get_section_by_name (stdoutput, ".debug_info") == NULL
+         || files_in_use == 0))
     return;
 
   /* Calculate the size of an address for the target machine.  */