From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D053385E445; Tue, 20 Oct 2020 10:26:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D053385E445 From: "dodji at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/26684] abidiff says that some bit field elements missing in version of binary with dwarf5 debuginfo. Date: Tue, 20 Oct 2020 10:26:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dodji at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com 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: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 10:26:27 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26684 --- Comment #13 from dodji at redhat dot com --- I have put together a patch to support the DW_AT_data_bit_offset attribute = and also to interpret the DW_AT_bit_offset attribute correctly on little endian machines. It's available at=20 https://sourceware.org/git/?p=3Dlibabigail.git;a=3Dcommit;h=3D4e9bfc1212c01= 7cc18f0044b76c37ca3be9ba625, in the PR26684 branch which can be browsed at https://sourceware.org/git/?p=3Dlibabigail.git;a=3Dshortlog;h=3Drefs/heads/= PR26684. With this patch libabigail should be able to compare two binaries resulting from the same program, one being compiled with DWARF4 and the other one with DWARF5. The result of the comparison should yield the empty set. The problem now is that abixml files emitted using a previous version of Libabigail that was doing the wrong interpretation of DW_AT_bit_offset will= now be incompatible with abixml files emitted with this patch. So, I am thinking about introducing a new abixml version (2.0?) which would= be incompatible with the current 1.0 one. That way, I can add code to prevent comparing 1.0 abixml versions against 2.0 ones, as well as comparing 1.0 ab= ixml files against binaries loaded with the new code. I'll be working on that n= ow. --=20 You are receiving this mail because: You are on the CC list for the bug.=