<div dir="ltr">

<p class="MsoNormal">Hi,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">In our proprietary linker, we have a switch which has
essentially identical functionality to the --symbol-ordering-file LLD switch.
One of the main areas that it differs in is that our linker warns in various
circumstances, if there is a problem with the contents of the order file. We
would like to propose adding these same warnings to LLD, if there is interest
in them. Following are the situations we warn in, and some of the justifications
behind them:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">When a symbol in the order file is not found - might help
catch typos in that file.</p>

<p class="MsoNormal">Imported/undefined symbols - symbols in other modules
clearly can’t be reordered in the current link.</p>

<p class="MsoNormal">Absolute symbols - these do not have a position in the file,
so ordering them makes no sense.</p>

<p class="MsoNormal">Removed symbols (i.e. via --gc-sections) - it doesn’t make
much sense to try to order such symbols, since they have no position in the
output.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Would people be interested in these warnings?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Regards,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">James</p>

</div>