From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by sourceware.org (Postfix) with ESMTPS id F35003858004 for ; Sun, 21 Mar 2021 20:25:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F35003858004 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gudrian.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=christian@gudrian.org Received: from oxbsltgw63.schlund.de ([172.19.249.153]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MTikV-1lG81e2UjV-00U0MR for ; Sun, 21 Mar 2021 21:25:31 +0100 Date: Sun, 21 Mar 2021 21:25:30 +0100 (CET) From: christian@gudrian.org To: "binutils@sourceware.org" Message-ID: <538271840.178301.1616358330676@email.ionos.de> Subject: ld: map file entries of symbols in static libraries built with LTO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.4-Rev20 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:HCKJRnlTx1N8ZMdIfVSjs3rg23gelGUb9sZSmICwMsaKJlzLS2s y042o71uuImGDRwiHBfoG/XTPX4BFuX2sCZuNxsNtZN+jTgjVX/b6hWa0ALZqnd50ryWyCe IGCTTKcNjBaYlzy8ElJjypjG+7DuNq2abUZK4E61nxpHnQbQtUeZ58pOpvmDs6DE2xRjgbc WoVRRZStAGAyium08UPDg== X-UI-Out-Filterresults: notjunk:1;V03:K0:DbxLucm9K7U=:kdkCJCp5Z/TEKFU/J5xT8L TWDQ6vpOBsUi7sk1kKCEEXDKQg3Nr5J4F7tt4N8gsTtepLQLFiof7xhDBDLlk2hcKvSryVKes LTZ9Z+497Po/T2e6mLFXlaj2x0klrk0u6yBFd2/oj5RTbAn/QPO1dj7EB/XIqhziW0JbFmxpn jZI8nxIg/u13U8yzPUZZavpta4bcZ6mAa8gajndR3ZAYhHhQ5IaBSVRJLazZ5lUxZoxlquYEX PQbP8GdZOunMOuD5Vah3EbQWsyDQI71agJfSOmUFMsCIIGc9Y+0vja2eTh9vjyLGHLrqwO5Tt Pn8yJWg2qD2AljrOf/06i3IZWS2RXsjeN1G2WvCVfTZNd4W0rJ/ZaEAWGzlhyD4iuukMe9KcE Ue1z62Qii0M8Si90pgjn7nStbEqyj8pWXvr12JCHmwX3FD+4GB4n+NYAYcXQvLEkemaqXKyLZ F6YkEh0qrA== X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 20:25:34 -0000 Hello! When I compile and link an executable against a static library (both with LTO) the map file of the resulting executable is missing the addresses of the symbols in the static library. The only reference I get is a line like this one: libmylib.a(myfunc.c.o) CMakeFiles/app.dir/main.c.o (symbol from plugin) (myfunc) The function in question (myfunc in this case) has not been inlined (according to objdump -S). Why is this happening and what can I do about it? Thanks for any hints! Christian P.S. I'm on GCC 9.3.0 and Binutils 2.36.