From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 624783858D28; Fri, 22 Mar 2024 23:47:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 624783858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711151229; bh=CeWJFvk3y1f6FNHUDRfwNJYaCAISGOMg0CJstH2ZPMA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nqnLVi4cCir9qAJDLfSEQYUXGI4vdkPA0RLEOoy540SNNFoSI2z6mcYRfLgAfxcSq dOfrZMf2Cms5cytz1pb5S02ghETWP6nnnzKnbu5E/KVwhQqw6zaXAYoTukpP1BO4IV Q8pRTG1No4GvsttQFRGFBdEIHP/9i3Ru99sFINNw= From: "mark at klomp dot org" To: debugedit@sourceware.org Subject: [Bug debugedit/31504] debugedit writes out ELF file even when nothing has been updated Date: Fri, 22 Mar 2024 23:47:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: debugedit X-Bugzilla-Component: debugedit X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31504 --- Comment #8 from Mark Wielaard --- (In reply to Allan McRae from comment #7) > > What I don't fully understand is why you are expecting debugedit to NOT= change > > the debug path strings when you are asking it to. Is this because there= file=20 > > don't actually contain any .debug sections? >=20 > I don't expect that. I expect debugedit/libelf to not truncate the extra > data that is tagged on to the ELF file. I am sorry, but it will if it needs to change the ELF data because it has no way of knowing what to do with this "extra data" since it isn't described in the ELF header, program or section tables. So when the debug path strings change and the section data becomes bigger or smaller things will move arou= nd. --=20 You are receiving this mail because: You are on the CC list for the bug.=