aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-06-19 15:22:39 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-06-19 15:22:39 +0000
commitcb840a31ad6c4931be63584da61cfe1e3f311d83 (patch)
treef6bc8526d2529a280b3ab9fb683bbebf482df521 /ld/ld.texinfo
parent9bf03accc302d5286fd228278dca692f211e33b7 (diff)
downloadgdb-cb840a31ad6c4931be63584da61cfe1e3f311d83.zip
gdb-cb840a31ad6c4931be63584da61cfe1e3f311d83.tar.gz
gdb-cb840a31ad6c4931be63584da61cfe1e3f311d83.tar.bz2
2001-06-19 H.J. Lu <hjl@gnu.org>
* ld.texinfo (-E, --export-dynamic): Mention --version-script. (--version-script): Mention the language support.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo15
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 556f3ca..166c4f1 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -444,6 +444,10 @@ back to the symbols defined by the program, rather than some other
dynamic object, then you will probably need to use this option when
linking the program itself.
+You can also use the version script to control what symbols should
+be added to the dynamic symbol table if the output format supports it.
+See the description of @samp{--version-script} in @ref{VERSION}.
+
@cindex big-endian objects
@cindex endianness
@kindex -EB
@@ -3537,6 +3541,17 @@ within the shared library, you can use the aliases of convenience
(i.e. @samp{old_foo}), or you can use the @samp{.symver} directive to
specifically bind to an external version of the function in question.
+You can also specify the language in the version script:
+
+@smallexample
+VERSION extern "lang" @{ version-script-commands @}
+@end smallexample
+
+The supported @samp{lang}s are @samp{C}, @samp{C++}, and @samp{Java}.
+The linker will iterate over the list of symbols at the link time and
+demangle them according to @samp{lang} before matching them to the
+patterns specified in @samp{version-script-commands}.
+
@node Expressions
@section Expressions in Linker Scripts
@cindex expressions