aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 086df4b..80f6b87 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -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;
}