From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 6287E3858D33 for ; Thu, 13 Apr 2023 09:10:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6287E3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-pj1-x102a.google.com with SMTP id w11so15000728pjh.5 for ; Thu, 13 Apr 2023 02:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1681377057; x=1683969057; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F+zZG1KhnDL/9wMx3xMBf2QffxriS8VWuaTi6YvxEAc=; b=B8iWIdyaSeFl9IHkDF5rtJ3aV+BOX+yIMDhJmkSh7uzSXmFijlIdyxjeC8I7dEBPUX Ouvy2ASN2KLAY2nDBgUlJ16W+gfWMXv/oeCYYRZUqlx7mcJqRjrJedS7iFYY2NQfhlnp aQhrSfHI6Xke31kmmzv5eL5nsjTcusLMjGG09L8sz1+ns3RKW7JqBkMghtAxawydCbh5 OpIBXDms4hKFWG0wkLa7D9HpVoPPp6TFrE+YLAUjSOu9vBBkHW9xJPq9lQnHBPvRo3B5 p0EGMpZGo3Yp4hgCgeLKtbavGzQIqbJ3jxR33mWj03oy+yE8lDiVcg5kwhD0dq7g3T2r ZX+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681377057; x=1683969057; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F+zZG1KhnDL/9wMx3xMBf2QffxriS8VWuaTi6YvxEAc=; b=fHz+bhXDwWfgQWdXeAkTWXlk6FduV7k8fSDbVhZUL3En30jaejvbmvb83w+hSnJYYH fC5gwnSe2HNIJiieDozdlld7IzVt0NIUUDcEEwW4Ljr8aD2Fx7ub+iZuByI+HJYBG8k1 fsXT27xF3eqlE+4vnJOtQy4e4j1KsZbl4eRQfpaZ9VRkZw5iv7/jW18HPNd09NpeAGtF Bh9y+c5RVfgUuKsJkpp4rgOveXx3Kdsja0WciJw4dy9ai39YHOi/pKel64UKSa/XVQYG 2VnhoD2wYlrmRElm5DimPh1usOZxjfCvFwIyBna9vSYKJ+usvooiopttZGyX3/qQWlb+ R2iQ== X-Gm-Message-State: AAQBX9fFqtxd8ILWN9Yuv3l3mMtOOjwpssMmED1tHVbepw9orT1gIoZa 8NxQfqlW9L13siEzgW/FOy3IYit2ypY6qmjTYyP9soQGnlKGMh/SkvU= X-Google-Smtp-Source: AKy350ZrtngXlz3EglFqjxSmcshqyfSobT1Pt/mOVYzulnnnfXC77Ls5zId4pTyuwJTegL1Bw5tAz/u0JO/D3uTu2Kk= X-Received: by 2002:a17:902:b694:b0:1a6:7354:408c with SMTP id c20-20020a170902b69400b001a67354408cmr411510pls.3.1681377056772; Thu, 13 Apr 2023 02:10:56 -0700 (PDT) MIME-Version: 1.0 References: <3b124775-aa86-7e29-eba4-fbf07ffa0819@symas.com> In-Reply-To: <3b124775-aa86-7e29-eba4-fbf07ffa0819@symas.com> From: =?UTF-8?Q?Cl=C3=A9ment_Chigot?= Date: Thu, 13 Apr 2023 11:10:46 +0200 Message-ID: Subject: Re: [RFC] Move static archive dependencies into ld To: Howard Chu , Michael Matz Cc: binutils@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: On Fri, Feb 17, 2023 at 9:53=E2=80=AFPM Howard Chu wrote: > > Michael Matz via Binutils wrote: > > Hello, > > > > this is an RFC for now. When met with some acceptance I'll cobble up a > > similar thing for gold as well and then make the libdep.so plugin only > > emit a warning message that its functionality is obsoleted and moved > > into ld itself. As Cary put it back in 2020 when the plugin was added: > > > > ( https://sourceware.org/pipermail/binutils/2020-December/114536.html ) > > > > "Did I miss any discussion about whether this feature should/could be > > implemented directly in the linkers, rather than via a plugin? I > > wouldn't be opposed to it." > > I'm all for it. I went the plugin route initially because it seemed the > easiest way to get the feature written and accepted but I agree with you, > it'd be much more useful if it was implicitly supported by default. I do support this feature as well. As seen recently, the plugin is not correctly built when shared support is disabled. It means that a feature made to enhance static support does not work when only static support is available... I was planning to disable its creation (see [1]) because of potential harmful side effects on Windows. But this solution is far better. Thanks Chu for pointing it out to me. [1] https://sourceware.org/pipermail/binutils/2023-April/127045.html Thanks, Cl=C3=A9ment