From: Nick Clifton Date: Fri, 29 Jan 1999 11:57:27 +0000 (+0000) Subject: Fix seg fault producing histogram X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e356c94b925d396ff2b98a832ae9e5f5d1f364d6;p=binutils-gdb.git Fix seg fault producing histogram --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4247bd67e5d..34f848eeda1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +1999-01-29 Nick Clifton + + * readelf.c (process_symbol_table): Do not produce a histogram of + bucket chains if none were found. + 1999-01-27 Nick Clifton * version.c: Add 1999 copyright. diff --git a/binutils/readelf.c b/binutils/readelf.c index d009be042a9..d67f71a7be2 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1053,7 +1053,7 @@ usage () fprintf (stdout, _(" -x or --hex-dump=\n")); fprintf (stdout, _(" Dump the contents of section \n")); fprintf (stdout, _(" -w[liap] or --debug-dump[=line,=info,=abbrev,=pubnames]\n")); - fprintf (stdout, _(" Display the contents of DWARF debug sections\n")); + fprintf (stdout, _(" Display the contents of DWARF2 debug sections\n")); #ifdef SUPPORT_DISASSEMBLY fprintf (stdout, _(" -i or --instruction-dump=\n")); fprintf (stdout, _(" Disassemble the contents of section \n")); @@ -3109,7 +3109,7 @@ process_symbol_table (file) printf (_("\nDynamic symbol information is not available for displaying symbols.\n")); - if (do_histogram) + if (do_histogram && buckets != NULL) { int *lengths; int *counts;