[PATCH] D32485: [LLD][ELF] Make SHF_LINK_ORDER sections orphans

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 00:50:08 PDT 2017


peter.smith added a comment.

Yes that is what it is doing. If there are no InputSectionDescriptions in an OutputSection, the script falls back to flush() which just outputs any OutputSections::Sections() that have not already been output as part of an InputSection. By clearing the InputSectionDescriptions flush() picks up the ordering from OutputSections::finalize();

In the previous review https://reviews.llvm.org/D32355 I made sure that there was an equivalent of a single .ARM.exidx : { *(.ARM.exidx*) }, essentially putting all .ARM.exidx sections in a single InputSectionDescription.

>From what Rafael says, if we want to remove flush() then this is definitely the wrong way to go, perhaps there is a way to make it less clunky to fabricate the linker script for the link order dependencies.

I suggest I abandon this and go back to https://reviews.llvm.org/D32355?


https://reviews.llvm.org/D32485





More information about the llvm-commits mailing list