GAS .debug_abbrev fix
Momchil Velikov
velco@fadata.bg
Thu Feb 1 08:44:00 GMT 2001
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. */
More information about the Binutils
mailing list