aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-05 00:32:22 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-05 00:32:22 +0000
commit7eaea5495ab1b0dfbedaba749e249cfc92b9d7c6 (patch)
treec7c9bd6b9f0d43c6855d51cc0ed07ac314f4fcaa /gold/options.h
parente44c01790d7b6959e2b7a1cbb00c9963a59ee809 (diff)
downloadgdb-7eaea5495ab1b0dfbedaba749e249cfc92b9d7c6.zip
gdb-7eaea5495ab1b0dfbedaba749e249cfc92b9d7c6.tar.gz
gdb-7eaea5495ab1b0dfbedaba749e249cfc92b9d7c6.tar.bz2
PR 10980
* options.h (class General_options): Add --add-needed and --copy-dt-needed-entries. Tweak --as-needed help entry. * object.cc (Input_objects::check_dynamic_dependencies): Give an error if --copy-dt-needed-entries aka --add-needed is used and would cause a change in behaviour.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gold/options.h b/gold/options.h
index 8f26208..f6549ab 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -580,13 +580,17 @@ class General_options
// alphabetical order). For both, lowercase sorts before uppercase.
// The -z options come last.
+ DEFINE_bool(add_needed, options::TWO_DASHES, '\0', false,
+ N_("Not supported"),
+ N_("Do not copy DT_NEEDED tags from shared libraries"));
+
DEFINE_bool(allow_shlib_undefined, options::TWO_DASHES, '\0', false,
N_("Allow unresolved references in shared libraries"),
N_("Do not allow unresolved references in shared libraries"));
DEFINE_bool(as_needed, options::TWO_DASHES, '\0', false,
- N_("Only set DT_NEEDED for dynamic libs if used"),
- N_("Always DT_NEEDED for dynamic libs"));
+ N_("Only set DT_NEEDED for shared libraries if used"),
+ N_("Always DT_NEEDED for shared libraries"));
DEFINE_enum(assert, options::ONE_DASH, '\0', NULL,
N_("Ignored"), N_("[ignored]"),
@@ -631,6 +635,10 @@ class General_options
{"none"});
#endif
+ DEFINE_bool(copy_dt_needed_entries, options::TWO_DASHES, '\0', false,
+ N_("Not supported"),
+ N_("Do not copy DT_NEEDED tags from shared libraries"));
+
DEFINE_bool(define_common, options::TWO_DASHES, 'd', false,
N_("Define common symbols"),
N_("Do not define common symbols"));