Detect and warn about DWARF64 format .debug_arange sections

This commit is contained in:
Nick Clifton 2001-10-01 16:15:50 +00:00
parent 4eef72c77d
commit e414a1659e
2 changed files with 14 additions and 0 deletions

View 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> 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
* Makefile.am: Update dependencies with "make dep-am". * Makefile.am: Update dependencies with "make dep-am".

View File

@ -7376,6 +7376,12 @@ display_debug_aranges (section, start, file)
arange.ar_pointer_size = BYTE_GET (external->ar_pointer_size); arange.ar_pointer_size = BYTE_GET (external->ar_pointer_size);
arange.ar_segment_size = BYTE_GET (external->ar_segment_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) if (arange.ar_version != 2)
{ {
warn (_("Only DWARF 2 aranges are currently supported.\n")); warn (_("Only DWARF 2 aranges are currently supported.\n"));
@ -9070,6 +9076,8 @@ db_task_printsym (unsigned int addr)
} }
#endif #endif
int main PARAMS ((int, char **));
int int
main (argc, argv) main (argc, argv)
int argc; int argc;