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

Previous Next

Package: libtool;

Reported by: Martin Storsjö <martin <at> martin.st>

Date: Wed, 14 Aug 2019 20:59:02 UTC

Severity: normal

Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#37032: closed (Make libtool prefer response files over linker
 script, for lld)
Date: Fri, 25 Oct 2024 16:51:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 25 Oct 2024 19:48:26 +0300
with message-id <ff49ffab-f468-4e7d-b89f-fee65278dc08 <at> gmail.com>
and subject line bug#37032: Make libtool prefer response files over linker script, for lld
has caused the debbugs.gnu.org bug report #37032,
regarding Make libtool prefer response files over linker script, for lld
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
37032: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37032
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Martin Storsjö <martin <at> martin.st>
To: bug-libtool <at> gnu.org
Subject: Make libtool prefer response files over linker script, for lld
Date: Wed, 14 Aug 2019 23:58:24 +0300 (EEST)
[Message part 3 (text/plain, inline)]
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
[0001-Prefer-response-files-over-linker-scripts-for-mingw-.patch (text/x-diff, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 37032-done <at> debbugs.gnu.org
Cc: Martin Storsjö <martin <at> martin.st>
Subject: bug#37032: Make libtool prefer response files over linker script, for
 lld
Date: Fri, 25 Oct 2024 19:48:26 +0300
[Message part 6 (text/plain, inline)]
Thank you for forwarding this patch from msys2! It has been applied to
the development branch:

https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=5fa7a3b50506cb7ba9e82d77140f4958fb534127

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 204 days ago.

Previous Next


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