[llvm-dev] LLD handling of orphaned sections
Rui Ueyama via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 21 05:04:34 PDT 2019
I think Geroge (cc'ed) knows better than me in that area.
lld is underdocumented, and in particular there is virtually no
documentation about its linker script support. Our basic strategy is to
follow the GNU's documentation and the implementations unless it is too
hard or doesn't match with the rest of lld. So, as long as it works just
like GNU, it's fine, but if not, it is hard to say whether it is intended
or not, just as you explained. This is an area that we need to improve.
On Thu, Jun 20, 2019 at 11:18 PM Roger Pau Monné via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> The handling of orphaned sections in LLD 8 has changed from GNU LD
> behavior (note that LLD 7 didn't show this behavior). I've reported
> this as:
> It's not clear to me however whether this is intentional or a
> regression when compared to LLD 7.
> As stated in that bug report it would be helpful for me to get some
> kind of documentation that describes LLD intended handling of orphaned
> sections, so that I can justify fixes in order to support LLD, and
> that I can be sure what I modify is going to be robust against future
> changes in LLD. For example GNU LD has:
> Having something like this for LLD (if it's going to diverge from GNU
> LD behavior) would be very helpful, and would allow me to implement
> future proof support for LLD in Xen.
> Thanks, Roger.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev