[PATCH] D25799: Include version string into ".linker-version" section.

Bob Haarman via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 17:48:28 PDT 2016

inglorion added a comment.

It would be nice to have an easy way to extract the linker name from the file somehow. There doesn't seem to be an established way to encode this information now - as you observed, gold uses .note.gnu.gold-version, whereas other programs tend to use the .comment section. How about using the .comment section, but using a prefix (e.g. "linker: ", followed by the identifying string (e.g. "${program} version ${version} (${commit_info})" as we use for Clang?


More information about the llvm-commits mailing list