Add an option to the gold linker to put its version string into the .comment section.
authorNick Clifton <nickc@redhat.com>
Mon, 27 Mar 2023 10:10:10 +0000 (11:10 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 27 Mar 2023 10:10:10 +0000 (11:10 +0100)
commiteb42b9d6f914b233d740da88d5e21c6690170b7d
tree3c3d3b8bdf2c5c32aad922421f098d42925ce58d
parent1770eca698ad0018cd504b9744306fc9928d9a86
Add an option to the gold linker to put its version string into the .comment section.

  PR 30187
  * options.h (class General_options): Add enable-linker-version.
  * layout.cc (Layout::create_gold_note): If linker-version is enabled put the version string into the .comment section.
gold/ChangeLog
gold/layout.cc
gold/options.h