April 02, 2017
https://issues.dlang.org/show_bug.cgi?id=879

--- Comment #25 from Marco Leise <Marco.Leise@gmx.de> ---
I haven't thoroughly tested it, but at least dub works with --gc-sections since - I believe - dmd-2.072. So from my side this issue can be closed.

--
April 02, 2017
https://issues.dlang.org/show_bug.cgi?id=879

--- Comment #26 from David Nadlinger <code@klickverbot.at> ---
(In reply to Marco Leise from comment #25)
> I haven't thoroughly tested it, but at least dub works with --gc-sections since - I believe - dmd-2.072. So from my side this issue can be closed.

Are you sure it works with both ld.bfd and ld.gold and against a static as well as shared runtime? This should be the minimum set of tests before considering this closed, although the set of linker bugs also differs between the various distros (i.e. linker versions) out there.

--
April 03, 2017
https://issues.dlang.org/show_bug.cgi?id=879

--- Comment #27 from Marco Leise <Marco.Leise@gmx.de> ---
Shame on me, I only tested with ld.gold and shared Phobos library. I extended
the 1x1 test matrix by a static Phobos library on one axis and ld.bfd on the
other and found that in all 4 cases dub greets me with the expected "Neither a
package ..." message.
(I used dmd and Phobos in version 2.073.2 and binutils-2.26.1 on Gentoo.)

--
April 03, 2017
https://issues.dlang.org/show_bug.cgi?id=879

--- Comment #28 from David Nadlinger <code@klickverbot.at> ---
(In reply to Marco Leise from comment #27)
> I extended the 1x1 test matrix by a static Phobos library on one axis and
> ld.bfd on the other and found that in all 4 cases dub greets me with the
> expected "Neither a package ..." message.
> (I used dmd and Phobos in version 2.073.2 and binutils-2.26.1 on Gentoo.)

That's quite promising already. From what it took to get --gc-sections working on LDC it would be a minor miracle if it suddenly started working on DMD as well (unless we have been slowly porting over the required changes by accident). This is also the reason why I asked about different configurations; this is not just a "normal" backend issue, but the druntime module registration code is heavily affected by a few --gc-sections linker bugs/peculiarities. When implementing this on LDC, I only found out about the bigger part of the issues when pushing the changes to CI resp. from user reports in the subsequent beta.

If the flag really works on DMD now, it would be nice to enable it by default to drastically reduce binary sizes (LDC has been shipping with --gc-sections on for a couple of releases now). Building the test suite on the different CI systems and having people test it during pre-release would be a good stress test as well.

--
April 03, 2017
https://issues.dlang.org/show_bug.cgi?id=879

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--
July 13, 2019
https://issues.dlang.org/show_bug.cgi?id=879

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #29 from RazvanN <razvan.nitu1305@gmail.com> ---
I haven't been able to reproduce any of the issues posted. It seems that this issue has been fixed. Closing as WORKSFORME. Please reopen if you find any other issues.

--
1 2 3
Next ›   Last »