From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18656 invoked by alias); 20 Feb 2019 14:42:45 -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 18494 invoked by uid 48); 20 Feb 2019 14:42:41 -0000 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/24251] New: Allocatable section after non-allocatable ones 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: normal 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/msg00033.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24251 Bug ID: 24251 Summary: Allocatable section after non-allocatable ones Product: dwz Version: unspecified Status: NEW Severity: normal 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: --- [ This is essentially a refiling of PR21191 - "objcopy --only-keep-debug creates non-monotonically increasing section offsets", which was closed as WONTFIX, for dwz. ] For the example from PR21191, with trunk dwz and objcopy we have: ... $ cat t.c int main() { } $ gcc t.c -g=20 $ objcopy --only-keep-debug a.out a.debug $ dwz a.debug dwz: Allocatable section in a.debug after non-allocatable ones ... The dwz tool complains that allocatable section .init_array at offset 0xe40: ... [17] .init_array NOBITS 0000000000600e40 00000e40 0000000000000008 0000000000000008 WA 0 0 8 ... is at a bigger offset than non-allocatable section .debug_info at offset 0x= 410: ... [26] .debug_info PROGBITS 0000000000000000 00000410 00000000000002f3 0000000000000000 0 0 1 ... In the original a.out this situation does not occur: ... [17] .init_array INIT_ARRAY 0000000000600e40 00000e40 0000000000000008 0000000000000008 WA 0 0 8 [26] .debug_info PROGBITS 0000000000000000 000011a0 00000000000002f3 0000000000000000 0 0 1 ... The rationale with which PR21191 was closed as WONTFIX is: "File offset for= a SHT_NOBITS section is irrelevant". Following that rationale, dwz should not complain here. --=20 You are receiving this mail because: You are on the CC list for the bug.