[Issue 879] support for --gc-sections

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 4 12:16:54 PDT 2014


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #13 from Martin Nowak <code at dawg.eu> ---
The R_arch_NONE solution of pinning the .deh_eh and .minfo sections in the
d_dso_init function doesn't work with ld.gold because the gold linker removes
sections before dragging in object files from an archive whereas the bfd linker
removes sections after copying all input sections to the output sections.
For ld.gold one would need to pin the .deh_beg/.deh_eh/.deh_end and the
.minfo_beg/.minfo/.minfo_end sections in every object file of an archive.
At best the pinning would be done from the associated symbol (e.g. function for
.deh and ModuleInfo for .minfo).

--


More information about the Digitalmars-d-bugs mailing list