From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35134 invoked by alias); 20 Feb 2019 09:44:16 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 34937 invoked by uid 48); 20 Feb 2019 09:44:12 -0000 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/24249] New: Section offsets not monotonically increasing Date: Tue, 01 Jan 2019 00:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody 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-SW-Source: 2019-q1/txt/msg00026.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24249 Bug ID: 24249 Summary: Section offsets not monotonically increasing Product: dwz Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: default Assignee: nobody at sourceware dot org Reporter: vries at gcc dot gnu.org CC: dwz at sourceware dot org Target Milestone: --- For a hello world source file hello.c, using the gold linker does not cause trouble for dwz: ... $ gcc hello.c -g -fuse-ld=3Dgold $ dwz a.out=20 ... And adding the .gdb_index section using gdb-add-index also works fine with = dwz: ... $ gcc hello.c -g -fuse-ld=3Dgold $ gdb-add-index a.out $ dwz a.out=20 ... But, I get this error when using the gold linker to generate the .gdb_index section: ... $ gcc hello.c -g -fuse-ld=3Dgold -Wl,--gdb-index $ dwz a.out=20 dwz: Section offsets in a.out not monotonically increasing ... Inspecting the section offsets around .gdb_index: ... $ readelf -S a.out | grep '[[]' | egrep -C1 'Offset|\.gdb_index' [Nr] Name Type Address Offset [ 0] NULL 0000000000000000 00000000 -- [31] .debug_str PROGBITS 0000000000000000 00001b2f [32] .gdb_index PROGBITS 0000000000000000 000034b0 [33] .debug_ranges PROGBITS 0000000000000000 000021f0 ... indeed shows that the offsets are not monotonically increasing. --=20 You are receiving this mail because: You are on the CC list for the bug.