]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Detect and warn about DWARF64 format .debug_arange sections
authorNick Clifton <nickc@redhat.com>
Mon, 1 Oct 2001 16:17:07 +0000 (16:17 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 1 Oct 2001 16:17:07 +0000 (16:17 +0000)
binutils/ChangeLog
binutils/readelf.c

index d15a2d958bad14dc6d63daecf94201d0c9ce6283..55bfba2940d81427f9382d439e3dfb939d2419a0 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-01  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * readelf.c (display_debug_aranges): Warn about DWARF64 format
+       .debug_arange sections.
+
 2001-08-05  Philip Blundell  <philb@gnu.org>
 
        * binutils.texi (objdump): Fix typos.  Use "Thumb" not "THUMB".
index 1ce0eb76ef61a9a037f506724a4cdb52ff56ee11..4bfc1d77ec3abd48215a5337e1320ddd895af64e 100644 (file)
@@ -6945,6 +6945,12 @@ display_debug_aranges (section, start, file)
       arange.ar_pointer_size = BYTE_GET (external->ar_pointer_size);
       arange.ar_segment_size = BYTE_GET (external->ar_segment_size);
 
+      if (arange.ar_length == 0xffffffff)
+       {
+         warn (_("DWARF64 aranges not currently supported.\n"));
+         break;
+       }
+
       if (arange.ar_version != 2)
        {
          warn (_("Only DWARF 2 aranges are currently supported.\n"));