[lld] r282035 - Revert "Revert "Only restrict order if both sections are in the script."" (Rafael Espindola via llvm-commits)

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 06:39:09 PDT 2016


> That looks solves the problem with orphans. Them are just sorted somewhere in the middle now.
> So my question is do we want to do something else with orphans ?
> D23352 was the patch about them and I feel it can be abandoned ?


It depends. The hard thing with linker scripts in knowing what is
incidental and what is required by existing linker scirpts.

So far I the things I think are required

* Two PT_LOADs. Unfortunately the linker scirpt is in charge of
aligning, so it has to know where a PT_LOAD start.
* As a consequence of the above we have to place orphans so that they
don't require more PT_LOADs

Do you know of some requirement that is not currently met?

Cheers,
Rafael


More information about the llvm-commits mailing list