<div dir="ltr">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.<div><br></div><div>ld.bfd doesn't seem to embed any information, so we cannot tell whether an executable was linked by ld.bfd or not easily.</div><div><br></div><div>ld.gold embeds a string "GNU gold <version>" as ".note.gnu.gold-version" section contents.</div><div><br></div><div>I'm wondering what we should do for LLD. The gold's way seems almost right, but I think we don't want to use the same section name because it contains "gold" as part of the section name. However, at the same time, I don't believe we want to create ".note.gnu.lld-version", because if we do, all programs that determine linker version need to look at ".note.gnu.<linker-name>-<wbr>version" for all known linkers. That's absurd. (Also, our product is not GNU, so ".gnu" part is probably irrelevant.)</div><div><br></div><div>I'm leaning towards ".note.linker-version" in hope that other linkers follow it.</div><div><br></div><div>Any opinions?</div></div>