[PATCH] D46099: [ELF] Clarify help wording for --symbol-ordering-file

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 02:12:47 PDT 2018


jhenderson added a comment.

In https://reviews.llvm.org/D46099#1079007, @ruiu wrote:

> > Yeah, that's also true. Slightly unrelated to this change, but --warn-symbol-ordering is silent right now in case you forget -ffunction-sections (but of course the ordering doesn't work). Would it be reasonable to extend the warnings to cover that case? I'm thinking, for each symbol specified in the symbol ordering file, warn if that symbol's section also contains other symbols, though I don't know if that would lead to false positives and/or be reasonable cost-wise.
>
> Maybe we can warn if two or more symbols specified by a symbol ordering file belong to one section? I'm not sure if that would cause false positives, but it might be worth to try.


I agree that an additional warning here might be nice. We would probably only want to warn once (or possibly some other low limit) per section, not per symbol, as otherwise if you forget -ffunction-sections, you will get far too many warnings.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D46099





More information about the llvm-commits mailing list