Detect and warn about DWARF64 format .debug_arange sections
authorNick Clifton <nickc@redhat.com>
Mon, 1 Oct 2001 16:15:50 +0000 (16:15 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 1 Oct 2001 16:15:50 +0000 (16:15 +0000)
binutils/ChangeLog
binutils/readelf.c

index b20051568ea48fc66eab44dbabdfe95d7bf084d0..9e56071ed51f7a7ab4bfd03deecad6b180da9195 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-01  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * readelf.c (display_debug_aranges): Detect and warn about DWARF64
+       format .debug_arange sections.
+       (main): Add missing prototype.
+       
 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * Makefile.am: Update dependencies with "make dep-am".
index 5ba5315fa2ff9617dcb070607f885e9c3bfc3965..009f112b897f49abeeb2a3809f2f6768eaf03e12 100644 (file)
@@ -7376,6 +7376,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"));
@@ -9070,6 +9076,8 @@ db_task_printsym (unsigned int addr)
 }
 #endif
 
+int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int     argc;