This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Language support in version script
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Mon, 4 Aug 2003 10:51:56 -0700
- Subject: Language support in version script
According to the ld manual, version script supports:
You can also specify the language in the version script:
VERSION extern "lang" { version-script-commands }
The supported `lang's are `C', `C++', and `Java'. The linker will
iterate over the list of symbols at the link time and demangle them
according to `lang' before matching them to the patterns specified in
`version-script-commands'.
I am not sure what it tries to say and there are no examples. After
some digging, version script does support
extern "lang" { symbol; ...}
as symbol names. Does ld manual need some improvements.?
H.J.