From ddbc47acfcb78c7663b53bfa5f05d409a46f147c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 2 Nov 2004 09:49:25 +0000 Subject: [PATCH] (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. --- gas/ChangeLog | 6 ++++++ gas/dwarf2dbg.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 51d6174e290..11ada2e45de 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2004-11-02 Nick Clifton + + * 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 * config/tc-crx.c (getreg_image): Bug fix, a return value was diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 59da56ab55a..e1b7a8166fb 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. */ -- 2.30.2