[PATCH] D37736: [ELF] - Do not spread specific flags when emiting output sections.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 09:58:21 PDT 2017


grimar added a comment.

Problem here that we have to call `adjustSectionsBeforeSorting` before sorting the output sections,
it makes sections that has only assignment inside to be live and sets the flags 
(including incorrect SHF_LINK_ORDER flag) for them.

Then we do actual sorting and assign section indexes after that.
And problem is that we can not sort SHF_LINK_ORDER sections before we know the final indexes.
Seems we can not just drop this flag early like we do for SHF_COMPRESSED for example.
I have no good solution for that atm.


https://reviews.llvm.org/D37736





More information about the llvm-commits mailing list