From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19023 invoked by alias); 13 Jan 2019 17:02:28 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 13451 invoked by uid 48); 13 Jan 2019 17:02:24 -0000 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: =?UTF-8?B?W0J1ZyBnZW5lcmFsLzI0MDY4XSByZWFkZWxmLmM6MTAxNTI6MTU6IGVycm9y?= =?UTF-8?B?OiDigJglKmxseOKAmSBkaXJlY3RpdmUgb3V0cHV0IGJldHdlZW4gNCBhbmQg?= =?UTF-8?B?MjE0NzQ4MzY0NyBieXRlcyBtYXkgY2F1c2UgcmVzdWx0IHRvIGV4Y2VlZCA=?= =?UTF-8?B?4oCYSU5UX01BWOKAmSBbLVdlcnJvcj1mb3JtYXQtb3ZlcmZsb3c9XSB3aXRo?= =?UTF-8?B?IC1tMzI=?= Date: Sun, 13 Jan 2019 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00037.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24068 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-01-13 CC| |mark at klomp dot org Ever confirmed|0 |1 --- Comment #1 from Mark Wielaard --- This is weird. I cannot replicate with a standard build and gcc (GCC) 9.0.0 20190112 (experimental). Aha, with -m32. hmmm. Odd. So the issue seems to be that GCC doesn't realize digits is capped between 4 and 16. We could help with with something like: diff --git a/src/readelf.c b/src/readelf.c index 3a73710ff..83b700eee 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -10128,7 +10128,7 @@ print_debug_str_section (Dwfl_Module *dwflmod __attribute__ ((unused)), ++digits; tmp >>=3D 4; } - digits =3D MAX (4, digits); + digits =3D MIN (16, MAX (4, digits)); printf (gettext ("\nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n" " %*s String\n"), I that the correct fix though? Or is something else going on? I don't understand why this is -m32 specific. --=20 You are receiving this mail because: You are on the CC list for the bug.