summaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2009-04-29 17:24:27 +0000
committerChris Demetriou <cgd@broadcom.com>2009-04-29 17:24:27 +0000
commitdc0e265bb830faac4092e0d577265a1ef245ef25 (patch)
treef3a6c3b6e3a5c1624b076347f0f9ba2fd7d8b90f /ld/ld.texinfo
parent8135f9539fa3eaf8aaa31e920314eddcc4adce55 (diff)
downloadbinutils-redhat-dc0e265bb830faac4092e0d577265a1ef245ef25.tar.gz
[ld/ChangeLog]
2009-04-29 Chris Demetriou <cgd@google.com> * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC. (ld_options): Likewise. (parse_args): Likewise. * ld.texinfo: Document --no-export-dynamic. * NEWS: Mention --no-export-dynamic. [ld/testsuite/ChangeLog] 2009-04-29 Chris Demetriou <cgd@google.com> * ld-elfvers/vers.exp (vers4b): New test to verify that --no-export-dynamic undoes --export-dynamic.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo18
1 files changed, 11 insertions, 7 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 5a8824241f..77846d5a54 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -491,15 +491,19 @@ regardless of this option.
@cindex dynamic symbol table
@kindex -E
@kindex --export-dynamic
+@kindex --no-export-dynamic
@item -E
@itemx --export-dynamic
-When creating a dynamically linked executable, add all symbols to the
-dynamic symbol table. The dynamic symbol table is the set of symbols
-which are visible from dynamic objects at run time.
-
-If you do not use this option, the dynamic symbol table will normally
-contain only those symbols which are referenced by some dynamic object
-mentioned in the link.
+@itemx --no-export-dynamic
+When creating a dynamically linked executable, using the @option{-E}
+option or the @option{--export-dynamic} option causes the linker to add
+all symbols to the dynamic symbol table. The dynamic symbol table is the
+set of symbols which are visible from dynamic objects at run time.
+
+If you do not use either of these options (or use the
+@option{--no-export-dynamic} option to restore the default behavior), the
+dynamic symbol table will normally contain only those symbols which are
+referenced by some dynamic object mentioned in the link.
If you use @code{dlopen} to load a dynamic object which needs to refer
back to the symbols defined by the program, rather than some other