From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67C043853553; Tue, 6 Sep 2022 16:26:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67C043853553 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662481569; bh=jEHeCZLpYcw/dM3uCENaHz4EQgNl3JmgfZ4yNa6EIbk=; h=From:To:Subject:Date:From; b=s6WnMERqpEyIgbqAdvMZnRdAsCtn0VQWeJYFbGQkymo3sRSNFnkBQ1MRV1niYdBem Obw/ZIQ6KdiS25VNgN2KpXOU5t+bf47I/a1MdNfCpThPRM+wngsT4//gS9+IJFjUtb uioHFUrLu9s2ojc5lA1WTGcwsZXguoweZKrdGQmA= From: "dodji at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/29553] New: libabigail potentially misses some function declarations Date: Tue, 06 Sep 2022 16:26:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: NEW 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29553 Bug ID: 29553 Summary: libabigail potentially misses some function declarations Product: libabigail Version: unspecified Status: NEW Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: dodji at redhat dot com CC: libabigail at sourceware dot org Target Milestone: --- The problem can be reproduced from a tarball accessible from https://usercontent.irccloud-cdn.com/file/XEp8xIow/test_c.tar.gz. Here is the bug report I got from our IRC channel: Hi, Dodji! I stumbled upon a bug in libabigail, relative to `build_function_decl` in abg-dwarf-reader.cc. Looks like it skips all references from function declaration, if it was previously seen in other CU, which may lead to missing declaration for some classes. I've made an example with two CU and Makefile, you could build it using regular `make` and run something like `abidw --type-id-style hash --no-comp-dir-path=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 [18:03] --no-show-locs --no-linux-kernel-mode test.so`. And in output you could see missing declaration for `struct Common`, but it exists in DWARF, which could be seen by running `llvm-dwarfdump test.so`. Moreover, if you s= wap `user.o` and `test.o` in `Makefile` https://usercontent.irccloud-cdn.com/file/XEp8xIow/test_c.tar.gz --=20 You are receiving this mail because: You are on the CC list for the bug.=