GNU bug report logs - #37032
Make libtool prefer response files over linker script, for lld

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Martin Storsjö <martin@HIDDEN>; dated Wed, 14 Aug 2019 20:59:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Aug 2019 20:58:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 16:58:34 2019
Received: from localhost ([127.0.0.1]:49804 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hy0Lp-0000wG-M5
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2019 16:58:34 -0400
Received: from lists.gnu.org ([209.51.188.17]:55125)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <martin@HIDDEN>) id 1hy0Ln-0000w8-Fy
 for submit <at> debbugs.gnu.org; Wed, 14 Aug 2019 16:58:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39164)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <martin@HIDDEN>) id 1hy0Ll-0006KF-RD
 for bug-libtool@HIDDEN; Wed, 14 Aug 2019 16:58:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <martin@HIDDEN>) id 1hy0Lk-0001yk-3L
 for bug-libtool@HIDDEN; Wed, 14 Aug 2019 16:58:29 -0400
Received: from mail8.parnet.fi ([77.234.108.134]:21466)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <martin@HIDDEN>) id 1hy0Lj-0001vo-Oe
 for bug-libtool@HIDDEN; Wed, 14 Aug 2019 16:58:28 -0400
Received: from mail7.parnet.fi (mail7.parnet.fi [77.234.108.28])
 by mail8.parnet.fi  with ESMTP id x7EKwOA8029357-x7EKwOAA029357
 (version=TLSv1.0 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO)
 for <bug-libtool@HIDDEN>; Wed, 14 Aug 2019 23:58:24 +0300
Received: from foo.martin.st (host-96-177.parnet.fi [77.234.96.177])
 by mail7.parnet.fi (8.13.8/8.13.8) with ESMTP id x7EKwOAu006597
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <bug-libtool@HIDDEN>; Wed, 14 Aug 2019 23:58:24 +0300
Date: Wed, 14 Aug 2019 23:58:24 +0300 (EEST)
From: =?ISO-8859-15?Q?Martin_Storsj=F6?= <martin@HIDDEN>
To: bug-libtool@HIDDEN
Subject: Make libtool prefer response files over linker script, for lld
Message-ID: <alpine.DEB.2.20.1908142349311.2829@HIDDEN>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: multipart/mixed; BOUNDARY="8323329-1720310909-1565816304=:2829"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 77.234.108.134
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-1720310909-1565816304=:2829
Content-Type: text/plain; format=flowed; charset=US-ASCII

When linking for mingw with libtool, with lld as linker (where lld 
impersonates GNU ld and implements the subset of commonly used GNU ld 
features), libtool will use a linker script for passing long lists of 
object files to the linker.

This fails with lld, where the mingw/coff part of lld doesn't support 
linker script. It does support response files (which also GNU ld does) 
though, so by making libtool check for support for response files before 
linker script (which is assumed to be supported if with_gnu_ld is set), 
this issue can be avoided. The attached patch accomplishes this. Are there 
any drawbacks to this approach, other than being less tested than the 
current status quo?

This patch has been carried in msys2's copy of libtool since late last 
year, with no reported issues to my knowledge.

// Martin

--8323329-1720310909-1565816304=:2829
Content-Type: text/x-diff; name=0001-Prefer-response-files-over-linker-scripts-for-mingw-.patch
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.DEB.2.20.1908142358240.2829@HIDDEN>
Content-Description: 
Content-Disposition: attachment; filename=0001-Prefer-response-files-over-linker-scripts-for-mingw-.patch

RnJvbSBlYzE1ODQxOTYzY2EzYWFiM2JjODhmYjA5MzJjMDE0MzM3Mjg0YmZj
IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogPT9VVEYtOD9xP01h
cnRpbj0yMFN0b3Jzaj1DMz1CNj89IDxtYXJ0aW5AbWFydGluLnN0Pg0KRGF0
ZTogV2VkLCAxMCBPY3QgMjAxOCAxMDo0NzoyMSArMDMwMA0KU3ViamVjdDog
W1BBVENIXSBQcmVmZXIgcmVzcG9uc2UgZmlsZXMgb3ZlciBsaW5rZXIgc2Ny
aXB0cyBmb3Ig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aWIgLVhsaW5rZXIgJGxpYicNCkBAIC02NzA2
LDYgKzY3MDcsNyBAQCBpZiB0ZXN0IHllcyAhPSAiJF9sdF9jYXVnaHRfQ1hY
X2Vycm9yIjsgdGhlbg0KIAkgIF9MVF9UQUdWQVIoYWxsb3dfdW5kZWZpbmVk
X2ZsYWcsICQxKT11bnN1cHBvcnRlZA0KIAkgIF9MVF9UQUdWQVIoYWx3YXlz
X2V4cG9ydF9zeW1ib2xzLCAkMSk9bm8NCiAJICBfTFRfVEFHVkFSKGVuYWJs
ZV9zaGFyZWRfd2l0aF9zdGF0aWNfcnVudGltZXMsICQxKT15ZXMNCisJICBf
TFRfVEFHVkFSKGZpbGVfbGlzdF9zcGVjLCAkMSk9J0AnDQogDQogCSAgaWYg
JExEIC0taGVscCAyPiYxIHwgJEdSRVAgJ2F1dG8taW1wb3J0JyA+IC9kZXYv
bnVsbDsgdGhlbg0KIAkgICAgX0xUX1RBR1ZBUihhcmNoaXZlX2NtZHMsICQx
KT0nJENDIC1zaGFyZWQgLW5vc3RkbGliICRwcmVkZXBfb2JqZWN0cyAkbGli
b2JqcyAkZGVwbGlicyAkcG9zdGRlcF9vYmplY3RzICRjb21waWxlcl9mbGFn
cyAtbyAkb3V0cHV0X29iamRpci8kc29uYW1lICR3bC0tZW5hYmxlLWF1dG8t
aW1hZ2UtYmFzZSAtWGxpbmtlciAtLW91dC1pbXBsaWIgLVhsaW5rZXIgJGxp
YicNCi0tIA0KMi4xNy4xDQoNCg==

--8323329-1720310909-1565816304=:2829--




Acknowledgement sent to Martin Storsjö <martin@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#37032; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.