diff options
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r-- | gas/dwarf2dbg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 59da56a..e1b7a81 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -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. */ |