From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zmcc-3-mx.zmailcloud.com (zmcc-3-mx.zmailcloud.com [34.200.143.36]) by sourceware.org (Postfix) with ESMTPS id 04D653858C20 for ; Mon, 13 Feb 2023 17:12:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 04D653858C20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=symas.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=symas.com Received: from zmcc-3.zmailcloud.com (183.87.154.104.bc.googleusercontent.com [104.154.87.183]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zmcc-3-mx.zmailcloud.com (Postfix) with ESMTPS id D428640596; Mon, 13 Feb 2023 11:14:04 -0600 (CST) Received: from zmcc-3.zmailcloud.com (localhost [127.0.0.1]) by zmcc-3-mta-1.zmailcloud.com (Postfix) with ESMTPS id 8C6158036FCD; Mon, 13 Feb 2023 11:12:49 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by zmcc-3-mta-1.zmailcloud.com (Postfix) with ESMTP id 7D64B8036FC7; Mon, 13 Feb 2023 11:12:49 -0600 (CST) Received: from zmcc-3.zmailcloud.com ([127.0.0.1]) by localhost (zmcc-3-mta-1.zmailcloud.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7vcLSy96K-fg; Mon, 13 Feb 2023 11:12:49 -0600 (CST) Received: from [192.168.1.107] (ip-84-203-24-81.broadband.digiweb.ie [84.203.24.81]) by zmcc-3-mta-1.zmailcloud.com (Postfix) with ESMTPSA id 0F73F8036FD2; Mon, 13 Feb 2023 11:12:48 -0600 (CST) Subject: Re: usage of the libdep plugin of LD To: Marco Frigerio , "binutils@sourceware.org" References: From: Howard Chu Message-ID: Date: Mon, 13 Feb 2023 17:12:47 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.15 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,URIBL_RED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Marco Frigerio via Binutils wrote: > Hi, > Is there a way of making sure that the libdep plugin of LD is used? Not by default. You need to make sure ld is invoked with "-plugin .../libdep_plugin.so" yourself. Easiest way might be a wrapper script. > > I have a static .a library with the __.LIBDEP section, but linking it to an executable raises linking errors. > > All the errors go away if I specify manually the same '-lXXX' which is written in __.LIBDEP, suggesting that the latter is ignored. > > GNU Binutils v 2.38, gcc 11.3.0, on Ubuntu Linux. > > I could not find anything in the man pages, and the LD docs (section 4) do not say anything about enabling/loading plugins. > > I hope this is the right place for this kind of questions, my apologies otherwise. > Thanks > - MF > -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/