<div dir="ltr"><div>><span style="font-size:12.8px">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.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px">>ld.bfd doesn't seem to embed any information, so we cannot tell whether an executable was linked by ld.bfd or not easily.</span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">>ld.gold embeds a string "GNU gold <version>" as ".note.gnu.gold-version" section contents.</span><br></div><div><br></div>Echoing another thread, there seems to be a way to embed host compiler toolchain info in the assembly.<div>-Kevin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 27, 2016 at 5:39 PM, Maxime Chevalier-Boisvert via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
We’d like to keep track of which clang version was used to build our LLVM binaries. We use cmake and ninja with clang to build. What do you people think would be the cleanest way to know which version of clang is used, on a user’s machine, to build those binaries. I’m hoping to script this. I was thinking that getting cmake/ninja to spit out this information, if possible, would probably be best.<br>
<br>
Thank you for your help,<br>
<br>
- Maxime<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>