[llvm-dev] LLD handling of orphaned sections

Roger Pau Monné via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 20 07:18:06 PDT 2019


Hello,

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:

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

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:

https://sourceware.org/binutils/docs/ld/Orphan-Sections.html

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.


More information about the llvm-dev mailing list