[Issue 879] support for --gc-sections
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 4 12:28:57 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=879
David Nadlinger <code at klickverbot.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |code at klickverbot.at
--- Comment #14 from David Nadlinger <code at klickverbot.at> ---
I don't see how pinning the ModuleInfo reference from the ModuleInfo itself
would work, as there might not be any direct references to the ModuleInfo. In
fact, unless your module makes calls to _d_array_bounds or so, it's even rather
unlikely that such a reference that would keep the ModuleInfo alive exists.
Thus, the global ctor needs to keep the ModuleInfo alive (via the .minfo ref),
not the other way round.
--
More information about the Digitalmars-d-bugs
mailing list