[Issue 879] support for --gc-sections

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 9 16:39:18 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=879

--- Comment #22 from David Nadlinger <code at klickverbot.at> ---
(In reply to David Nadlinger from comment #21)
> There is an additional complication: ld.bfd turns __bss_start/_end into
> local symbols when passing --gc-sections. […]

LDC now uses special weak symbols, strongly defined in the D entry point
module, to avoid this problem altogether:

https://github.com/ldc-developers/druntime/commit/f57df3f586ba445b94b167106f82a807c0f1738e
https://github.com/ldc-developers/ldc/commit/4abdec752eed1d8eeff116251fdf8c3733927704

--


More information about the Digitalmars-d-bugs mailing list