Linker script: support VERSION command.
authorRui Ueyama <ruiu@google.com>
Wed, 31 Aug 2016 20:03:54 +0000 (20:03 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 31 Aug 2016 20:03:54 +0000 (20:03 +0000)
commit95769b4a2907457c19d5f72c2f557ff099d1ffa3
tree74ce01939eec520878440034e5e2d193103f71c6
parent6c978aa9da30053b211c694de3eb8edc0ac88dad
Linker script: support VERSION command.

Summary:
VERSION commands define symbol versions. The grammar of the
commnad is as follows

  VERSION { version-script-commands }

where version-script-commands is

  [ name ] { version-definitions }.

Note that we already support version-script-commands because
it is being used for version script command.

This patch is based on George's patch https://reviews.llvm.org/D23609

Reviewers: grimar

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D24089

llvm-svn: 280284
lld/ELF/LinkerScript.cpp
lld/test/ELF/verdef.s
lld/test/ELF/version-script.s