From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90D9B38515FC; Wed, 26 Jan 2022 13:43:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90D9B38515FC From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/104238] dwarf DW_AT_const_value causes overflow in readelf Date: Wed, 26 Jan 2022 13:43:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2022 13:43:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104238 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-01-26 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 --- Comment #3 from Martin Li=C5=A1ka --- Can't see it with: readelf -v GNU readelf (GNU Binutils; openSUSE Tumbleweed) 2.37.20211112-3 $ gcc-11 pr104238.c -c -g -O1 && readelf --debug-dump=3Dinfo,abbrev pr10423= 8.o Contents of the .debug_info section: ... <2><4c>: Abbrev Number: 3 (DW_TAG_variable) <4d> DW_AT_name : var <51> DW_AT_decl_file : 1 <52> DW_AT_decl_line : 2 <53> DW_AT_decl_column : 22 <54> DW_AT_type : <0x63> <58> DW_AT_const_value : -9223372036854775808 <2><62>: Abbrev Number: 0 ...=