summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2004-11-22 16:29:33 +0000
committerBob Wilson <bob.wilson@acm.org>2004-11-22 16:29:33 +0000
commita42a345dd9cff5c5db36d74a76bcf11740a3d01b (patch)
tree2df5c2699e3aa62cda663b22503a6f6cd0abb50d /gas
parent7e3e880aa099bb06384dd50188751e24d9de0f70 (diff)
downloadbinutils-redhat-a42a345dd9cff5c5db36d74a76bcf11740a3d01b.tar.gz
* dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
without a corresponding .debug_info section.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/dwarf2dbg.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3272fd7760..3e7642d16d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-22 Bob Wilson <bob.wilson@acm.org>
+
+ * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line section
+ without a corresponding .debug_info section.
+
2004-11-22 Hans-Peter Nilsson <hp@axis.com>
* read.c (potable): Add "error" and "warning".
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index e1b7a8166f..d3b5e85283 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1356,13 +1356,12 @@ dwarf2_finish (void)
struct line_seg *s;
/* We don't need to do anything unless:
- - Some debug information was recorded via .file/.loc
- - or, we are generating DWARF2 information ourself (--gdwarf2)
+ - Some debug information was recorded via .file/.loc or
+ generated by GAS (--gdwarf2)
- or, there is a user-provided .debug_info section which could
reference the file table in the .debug_line section we generate
below. */
if (all_segs == NULL
- && debug_type != DEBUG_DWARF2
&& (bfd_get_section_by_name (stdoutput, ".debug_info") == NULL
|| files_in_use == 0))
return;