From e414a1659e1aef462d8395eb2b6b56b768c2039c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 1 Oct 2001 16:15:50 +0000 Subject: [PATCH] Detect and warn about DWARF64 format .debug_arange sections --- binutils/ChangeLog | 6 ++++++ binutils/readelf.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index b200515..9e56071 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2001-10-01 Nick Clifton + + * readelf.c (display_debug_aranges): Detect and warn about DWARF64 + format .debug_arange sections. + (main): Add missing prototype. + 2001-09-30 Hans-Peter Nilsson * Makefile.am: Update dependencies with "make dep-am". diff --git a/binutils/readelf.c b/binutils/readelf.c index 5ba5315..009f112 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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; -- 2.7.4