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

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 06:54:04 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

I don't think I know any now.
My patch was about placing orphans right after the other sections with the same 
attributes instead of placing them to the end.
And as far I understand, that is already solved using sorting in latest changes.
So at least for now there is no much sence to do anything else with them if I am not missing anything,
this patch does not do something new here.

George.


More information about the llvm-commits mailing list