This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
GAS .debug_abbrev fix
- To: Binutils List <binutils at sourceware dot cygnus dot com>
- Subject: GAS .debug_abbrev fix
- From: Momchil Velikov <velco at fadata dot bg>
- Date: Thu, 01 Feb 2001 18:47:43 +0100
Hi there,
GNU as generates invalid abbreviation table when given the
--gdwarf2 option. This patch fixes it.
Regards,
-velco
2001-02-01 Momchil Velikov <velco@fadata.bg>
* dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
for
the compilation unit with a zero byte.
--- dwarf2dbg.c.orig Thu Feb 1 17:01:27 2001
+++ dwarf2dbg.c Thu Feb 1 17:06:02 2001
@@ -1099,6 +1099,7 @@
out_abbrev (DW_AT_producer, DW_FORM_string);
out_abbrev (DW_AT_language, DW_FORM_data2);
out_abbrev (0, 0);
+ out_byte (0);
}
/* Emit a description of this compilation unit for .debug_info. */