aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2009-04-29 17:24:27 +0000
committerChris Demetriou <cgd@google.com>2009-04-29 17:24:27 +0000
commit267e27229efe6d0edd002c87fc02598588503948 (patch)
treefb873c5cabcd8d6c3b8e51843a9c1f63a82bbed8 /ld/ld.texinfo
parent3ea7450594d97c3741e3be6d8b131011379e5860 (diff)
downloadgdb-267e27229efe6d0edd002c87fc02598588503948.zip
gdb-267e27229efe6d0edd002c87fc02598588503948.tar.gz
gdb-267e27229efe6d0edd002c87fc02598588503948.tar.bz2
[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 5a88242..77846d5 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