From: Jeff Law Date: Mon, 15 May 2017 16:48:41 +0000 (-0600) Subject: 2017-05-15 Jeff Law X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8cbc93b65ace8a36002839d5ee944efff59d643;p=binutils-gdb.git 2017-05-15 Jeff Law * readelf.c (display_arc_attribute): Avoid implicit fallthru. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7222d9a1871..675050bce70 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2017-05-15 Jeff Law + + * readelf.c (display_arc_attribute): Avoid implicit fallthru. + 2017-05-15 Maciej W. Rozycki * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3' diff --git a/binutils/readelf.c b/binutils/readelf.c index 7ff29bc8ba1..bb6bb79d4e0 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -13586,10 +13586,11 @@ display_arc_attribute (unsigned char * p, { default: if (val > 0 && val < 16) - { printf ("Core%d\n", val); - break; - } + else + printf ("Unknown\n"); + break; + case 0: printf (_("Absent\n")); break;