[llvm-bugs] [Bug 22906] lld does not seem to support __start and __stop

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Feb 21 09:05:23 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=22906

Ed Schouten <ed at 80386.nl> changed:

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

--- Comment #7 from Ed Schouten <ed at 80386.nl> ---
Reopening this, as it has not been implemented completely.

The problem with the existing implementation is that __start and __stop symbols
are only added after reachability of sections has been computed. What I mean is
that __start and __stop cannot be used to mark sections as live. They will get
removed if --gc-sections is being used.

This is different from GNU Binutils, were a reference to __start or __stop is
sufficient to prevent the section from being garbage collected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160221/9cb66550/attachment.html>


More information about the llvm-bugs mailing list