Add support for parsing version script.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2875 95820547-d848-0410-985e-9ae8fe0fa350
Fix up creation/deletion of flex(1) buffers so the lexer can properly
switch between string and file buffers multiple times.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2876 95820547-d848-0410-985e-9ae8fe0fa350
Add support for command line option "--version-script".

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2877 95820547-d848-0410-985e-9ae8fe0fa350
Create ".gnu.version_d" section if the linker creates shared library
and version script is provided.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2878 95820547-d848-0410-985e-9ae8fe0fa350
Assign version indices to symbols that match patterns in the version
script.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2879 95820547-d848-0410-985e-9ae8fe0fa350
Generate DT_VERDEF and DT_VERDEFNUM entries for the ".gnu.version_d"
section.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2880 95820547-d848-0410-985e-9ae8fe0fa350
If a symbol matches both an version pattern with globbing and one
without globbing, pick the pattern without globbing.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2881 95820547-d848-0410-985e-9ae8fe0fa350
Do not add symbols that are converted to "local" by the version script
to the dynamic symbol table.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2882 95820547-d848-0410-985e-9ae8fe0fa350
Improve compatibility with GNU ld: Do not complain about "no input
files" when option '-v', '-V' or '--verbose' is specified in the
command line and no input files are provided. Instead, the linker
should exit silently after printing version information.

Reported by:	jkoshy

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2883 95820547-d848-0410-985e-9ae8fe0fa350