aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-10-01 16:15:50 +0000
committerNick Clifton <nickc@redhat.com>2001-10-01 16:15:50 +0000
commite414a1659e1aef462d8395eb2b6b56b768c2039c (patch)
treef5fc622d0f4555ada43f4e8b1002431b57b00535 /binutils/readelf.c
parent4eef72c77dd130eef2b5c5964831d77495c77d68 (diff)
downloadgdb-e414a1659e1aef462d8395eb2b6b56b768c2039c.zip
gdb-e414a1659e1aef462d8395eb2b6b56b768c2039c.tar.gz
gdb-e414a1659e1aef462d8395eb2b6b56b768c2039c.tar.bz2
Detect and warn about DWARF64 format .debug_arange sections
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c8
1 files changed, 8 insertions, 0 deletions
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;