From 267e27229efe6d0edd002c87fc02598588503948 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Wed, 29 Apr 2009 17:24:27 +0000 Subject: [ld/ChangeLog] 2009-04-29 Chris Demetriou * 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 * ld-elfvers/vers.exp (vers4b): New test to verify that --no-export-dynamic undoes --export-dynamic. --- ld/ld.texinfo | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'ld/ld.texinfo') 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 -- cgit v1.1