From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AD05384A01E; Mon, 8 Feb 2021 10:45:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AD05384A01E From: "mliska at suse dot cz" To: elfutils-devel@sourceware.org Subject: [Bug general/27367] New: readelf: invalid loclists data with -ffat-lto-objects Date: Mon, 08 Feb 2021 10:45:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: mliska at suse dot cz X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 10:45:34 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27367 Bug ID: 27367 Summary: readelf: invalid loclists data with -ffat-lto-objects Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: general Assignee: unassigned at sourceware dot org Reporter: mliska at suse dot cz CC: elfutils-devel at sourceware dot org Target Milestone: --- Using the GCC 11 (master) I see the following issue: $ cat size.i int main_argc_remaining; int main_argc() { int result =3D 0; if (main_argc_remaining) result =3D 0; return 0; } $ gcc -c -flto -O size.i -g -ffat-lto-objects && /home/marxin/Programming/elfutils/src/readelf -aw size.o ... DWARF section [27] '.debug_loclists' at offset 0x747: Table at Offset 0x0: Length: 24 DWARF version: 5 Address size: 8 Segment size: 0 Offset entries: 0 Not associated with a CU. Offset: c, Index: 0 startx_endx 3, 8 ???.. ??? (empty) end_of_list Offset: 18, Index: c startx_endx 30, 1f ???.. ??? /home/marxin/Programming/elfutils/src/readelf: invalid loclists data --=20 You are receiving this mail because: You are on the CC list for the bug.=