[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
readelf: detect and warn about DWARF64 .debug_arange sections
From: |
Nick Clifton |
Subject: |
readelf: detect and warn about DWARF64 .debug_arange sections |
Date: |
01 Oct 2001 17:13:55 +0100 |
Hi Guys,
I have applied the following patch to readelf to allow it to detect
and warn about DWARF64 format .debug_arange sections. Some day we
will need to add support for this format, but until then, this
warning should help.
I am also checking this patch into the 2.11 branch.
I also added a prototype for main() in order to silence a compiler
time warning but I only did this for the mainline sources.
Cheers
Nick
2001-10-01 Nick Clifton <address@hidden>
* readelf.c (display_debug_aranges): Detect and warn about DWARF64
format .debug_arange sections.
(main): Add missing prototype.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.124
diff -p -r1.124 readelf.c
*** readelf.c 2001/09/26 01:55:19 1.124
--- readelf.c 2001/10/01 16:11:54
*************** display_debug_aranges (section, start, f
*** 7376,7381 ****
--- 7376,7387 ----
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"));
*************** db_task_printsym (unsigned int addr)
*** 9069,9074 ****
--- 9075,9082 ----
print_address (addr, stderr);
}
#endif
+
+ int main PARAMS ((int, char **));
int
main (argc, argv)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- readelf: detect and warn about DWARF64 .debug_arange sections,
Nick Clifton <=