From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DAEB63857C52; Thu, 24 Sep 2020 22:18:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAEB63857C52 From: "mark at klomp dot org" To: dwz@sourceware.org Subject: [Bug default/24251] Allocatable section after non-allocatable ones Date: Thu, 24 Sep 2020 22:18:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: mark at klomp dot org X-Bugzilla-Status: REOPENED 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: 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-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 22:18:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24251 --- Comment #15 from Mark Wielaard --- (In reply to Mark Wielaard from comment #14) > Created attachment 12847 [details] > boottime-debug >=20 > Got one, extracted from > https://koji.fedoraproject.org/koji/buildinfo?buildID=3D1570316 > sysutil-debuginfo-0-0.3.20200615git15668db.fc33.x86_64.rpm And dwz is right, it really has an allocated section in between non-allocat= ed ones: [33] .debug_ranges PROGBITS 000000000067e88f 0017edfd 00034d10 = 0=20=20=20 0 0 1 [34] .interp NOBITS 0000000000400fe4 001b3b0d 0000001c = 0 A=20 0 0 1 [35] .note.gnu.build-id NOTE 0000000000400fc0 001b3b10 00000024 = 0 A=20 0 0 4 [36] .note.go.buildid NOTE 0000000000400f5c 001b3b34 00000064 = 0 A=20 0 0 4 [37] .gdb_index PROGBITS 0000000000000000 001b3b98 0004321f = 0=20=20=20 0 0 1 We can (and I believe dwz does) ignore the .interp section, since that is NOBITS. But those two build-id/buildid NOTEs are allocated in the middle of= the file and so cannot be moved. This looks like a broken ELF file to begin wit= h. Those sections really should have been at the start of the file. I wonder if this is a bug in the golang toolchain. If so, it would be better to fix that than to try work around it. --=20 You are receiving this mail because: You are on the CC list for the bug.=