[PATCH] D44242: ELF: Don't crash on output sections with a mix of SHF_LINK_ORDER and non-SHF_LINK_ORDER input sections.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 01:35:25 PDT 2018


grimar added a comment.

Please take a look at https://reviews.llvm.org/rLLD327006. One of the things it addressed is this crash, though
with it, LLD now reports "error: incompatible section flags for .text" for your test case,
because it restricted mixing SHF_LINK_ORDER and non-SHF_LINK_ORDER sections
(assumption behind was that since nobody faced the crash, there is no need to support that case).
So, do you want to allow mixing them or just want to fix the crash?


https://reviews.llvm.org/D44242





More information about the llvm-commits mailing list