From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dd14210.kasserver.com (dd14210.kasserver.com [85.13.138.83]) by sourceware.org (Postfix) with ESMTPS id 237623858C2C for ; Fri, 22 Apr 2022 13:14:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 237623858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=milianw.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=milianw.de Received: from milian-workstation.localnet (p54a1bbed.dip0.t-ipconnect.de [84.161.187.237]) by dd14210.kasserver.com (Postfix) with ESMTPSA id 9F73424036C for ; Fri, 22 Apr 2022 15:14:17 +0200 (CEST) From: Milian Wolff To: elfutils-devel@sourceware.org Subject: Re: symbol resolution differences with -flto Date: Fri, 22 Apr 2022 15:14:09 +0200 Message-ID: <3075490.Pot3Zmco5o@milian-workstation> In-Reply-To: <1886504.tdWV9SEqCh@agathemoarbauer> References: <1886504.tdWV9SEqCh@agathemoarbauer> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart11230483.HR1SQQA1ME"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2022 13:14:22 -0000 --nextPart11230483.HR1SQQA1ME Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Milian Wolff To: elfutils-devel@sourceware.org Subject: Re: symbol resolution differences with -flto Date: Fri, 22 Apr 2022 15:14:09 +0200 Message-ID: <3075490.Pot3Zmco5o@milian-workstation> In-Reply-To: <1886504.tdWV9SEqCh@agathemoarbauer> References: <1886504.tdWV9SEqCh@agathemoarbauer> On Freitag, 15. April 2022 14:09:02 CEST Milian Wolff wrote: > Hey there, > > a user reported broken symbol resolution in hotspot/perfparser which uses > elfutils when he's using it on code compiled with LTO. > > I think I can reproduce this, and now spent some time trying to figure out > the breakage. I found at least one situation that is seemingly related to > the user's issue. Below are some observation of mine and then some > questions, as I cannot explain this situation and hope that someone around > here has more knowledge on how to handle this correctly. To answer my own question: The issue arises for functions with debug information that are not exported. Those won't have an entry in the symbol table, but by looking at the dwarf information we can still assign them a scope name from the respective DIEs, just like one would do for inline frames too. Cheers -- Milian Wolff mail@milianw.de http://milianw.de --nextPart11230483.HR1SQQA1ME Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAmJiqiEACgkQ8zYW/HGd OX9JjQ//ZteKFOqoeHIFSx/9Fwn3Yu+rslhJSSD6f3tD6tRkbdMxcI4/lcCQv2E5 q07MbdBCNImn73Pv7lYj+xUOzGwgv8g2HNk+5LoZbDtKav1vQqmJajM/7GxEDi1z mQkN6DdyqNm8pF/ZQKoB9WhCwAgka/p9FP067thqbfJ54XwX8O6UXrPY+Rms8Ow0 sVog/+0ZD8HuA5m+ht2L6pQCuHLbjebTrImf+x6IjSyy+Iv7pZVbsdSeKFU7CyWc LyLpJ5dvgjsNtc/4+MIYhlb0mxZH0cLHU9IkZkRJcRBy+VQHJKp9qN0iqzaqQLmv cm4PEACV1+OpCstB9dQtqwPFTEDkNR1Oggcg8Wt8lBuemUk5fr9CVu90MGFSD1wg RoBXK5cB/tJMwWkdUHiozIsIeameQoUUXapHJAeLF/hmqMk+6Bdg9JDzbhwjTERu 6R1eBlGobKqOp8PNCNQOXmesPkZTQJBzDthG9UnjQDt/i3Ud57ByRPDstup6tSY6 AZrMekCwhXXaUtQTb2Zjlhu2fXsVmUko3e9qnoslSqP8IZRB6NS194b6DALn7NOM ALI0i9g7RgvIBIA88gVt9yBN1TPyi1B9AW9ckeyc6vTyAJEUkZDERGN4tPcHGTuv ZqtugY7726wleNHLVxbeLRjagR5DC1wCn7P9IeHSGh855vWeh6U= =QIhn -----END PGP SIGNATURE----- --nextPart11230483.HR1SQQA1ME--