aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
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/lexsup.c
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/lexsup.c')
-rw-r--r--ld/lexsup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index f1b5b4c..a9a2689 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -77,6 +77,7 @@ enum option_values
OPTION_EL,
OPTION_EMBEDDED_RELOCS,
OPTION_EXPORT_DYNAMIC,
+ OPTION_NO_EXPORT_DYNAMIC,
OPTION_HELP,
OPTION_IGNORE,
OPTION_MAP,
@@ -222,6 +223,8 @@ static const struct ld_option ld_options[] =
'e', N_("ADDRESS"), N_("Set start address"), TWO_DASHES },
{ {"export-dynamic", no_argument, NULL, OPTION_EXPORT_DYNAMIC},
'E', NULL, N_("Export all dynamic symbols"), TWO_DASHES },
+ { {"no-export-dynamic", no_argument, NULL, OPTION_NO_EXPORT_DYNAMIC},
+ '\0', NULL, N_("Undo the effect of --export-dynamic"), TWO_DASHES },
{ {"EB", no_argument, NULL, OPTION_EB},
'\0', NULL, N_("Link big-endian objects"), ONE_DASH },
{ {"EL", no_argument, NULL, OPTION_EL},
@@ -820,6 +823,9 @@ parse_args (unsigned argc, char **argv)
case 'E': /* HP/UX compatibility. */
link_info.export_dynamic = TRUE;
break;
+ case OPTION_NO_EXPORT_DYNAMIC:
+ link_info.export_dynamic = FALSE;
+ break;
case 'e':
lang_add_entry (optarg, TRUE);
ldlang_add_undef (optarg);