[Issue 879] support for --gc-sections
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 9 10:55:57 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=879
David Nadlinger <code at klickverbot.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|pull |
--- Comment #21 from David Nadlinger <code at klickverbot.at> ---
There is an additional complication: ld.bfd turns __bss_start/_end into local
symbols when passing --gc-sections. This breaks the module collision check in
druntime, as discussed here:
http://forum.dlang.org/post/ferkvfamznsuhonokhco@forum.dlang.org. The linked
discussion is about LDC in particular, but from a few preliminary tests, DMD
also seems to be affected.
The root cause for this behavior seems to be this change in binutils 2.19:
https://sourceware.org/bugzilla/show_bug.cgi?id=13683. It's hard to tell
whether this is a bug in ld or not, but either way we'll have to live with it.
ld.gold is not affected.
--
More information about the Digitalmars-d-bugs
mailing list