[llvm-dev] Embedding LLD version to executables

Davide Italiano via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 18 20:42:49 PDT 2016


On Tue, Oct 18, 2016 at 8:22 PM, Mehdi Amini via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
>> On Oct 18, 2016, at 6:44 PM, Rui Ueyama via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> I'd like to make LLD embed version information so that we can determine if an executable was created by LLD and if that's the case which version of LLD.
>
> Pardon my ignorance, but what’s the motivation?
>

I can see how it's useful during a switch (from a linker to another).
Generally the linker is never invoked directly so there's still a
certain amount of uncertainty (did I use the correct one or not?), in
particular when lld is used as part of a bigger build system. YMMV.

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-dev mailing list