Ignore DWARF debug information with a version of 0 - assume that it is padding.
PR 19872 bfd * dwarf2.c (parse_comp_unit): Skip warning about unrecognised version number if the version is zero. bin * dwarf.c (display_debug_aranges): Skip warning about unrecognised version number if the version is zero.
This commit is contained in:
parent
26cdfd9205
commit
67f101eece
7 changed files with 276 additions and 73 deletions
|
@ -4910,7 +4910,12 @@ display_debug_aranges (struct dwarf_section *section,
|
|||
|
||||
if (arange.ar_version != 2 && arange.ar_version != 3)
|
||||
{
|
||||
warn (_("Only DWARF 2 and 3 aranges are currently supported.\n"));
|
||||
/* PR 19872: A version number of 0 probably means that there is
|
||||
padding at the end of the .debug_aranges section. Gold puts
|
||||
it there when performing an incremental link, for example.
|
||||
So do not generate a warning in this case. */
|
||||
if (arange.ar_version)
|
||||
warn (_("Only DWARF 2 and 3 aranges are currently supported.\n"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue