This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] inconsistent DWARF2 sections generated by --gdwarf2
I just tried --gstabs and --gstabs+ for several input files, and I don't
see any problems.
I think your concern is misplaced, i.e., the patch might not be correct,
but it shouldn't cause GAS to generate "extra" dwarf2 debugging output.
Look at it this way: the patch removes one of the conditions required
for dwarf2_finish to return without doing anything. It can only
increase the number of situations where dwarf2_finish does nothing.
Fair enough. Thank you for running the extra checks. Please consider
this patch approved and apply it when you can.