Index: readelf/readelf.c =================================================================== --- readelf/readelf.c (revision 351418) +++ readelf/readelf.c (working copy) @@ -6039,7 +6039,11 @@ int i, eh_frame; Dwarf_Error de; - printf("\nThe section %s contains:\n\n", s->name); + if (s->type == SHT_NOBITS) { + printf("\nThe section %s has no usable data, due to NOBITS type.\n", s->name); + return; + } else + printf("\nThe section %s contains:\n\n", s->name); if (!strcmp(s->name, ".debug_frame")) { eh_frame = 0;