On 11/02/2010 05:23 AM, IainS wrote:
- dw2_asm_output_offset (DWARF_OFFSET_SIZE,
debug_info_section_label,
+ if (info_section_emitted)
+ dw2_asm_output_offset (DWARF_OFFSET_SIZE,
debug_info_section_label,
debug_info_section,
"Offset of Compilation Unit Info");
+ else
+ dw2_asm_output_data (4, 0, "No Debug Info Section");
This is the only hunk that concerns me. I don't believe that this
is valid dwarf. In particular, a non-empty pubnames implies that
we must have had an info section from which to pull the names.
Did you have a test case that caused you to make this change?
If not, ok with gcc_assert (info_section_emitted).