aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-07 06:05:23 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-07 06:05:23 +0000
commitb9674e179b86530631391dd38988d2f5da4f40c0 (patch)
tree1c3ab467c6dff839f4773c0a0a8cefadc2e34e25 /gold/options.h
parent6eda8c29b846c5140c023e21c931c3a97ddf62fc (diff)
downloadgdb-b9674e179b86530631391dd38988d2f5da4f40c0.zip
gdb-b9674e179b86530631391dd38988d2f5da4f40c0.tar.gz
gdb-b9674e179b86530631391dd38988d2f5da4f40c0.tar.bz2
PR 10980
* options.h (class General_options): Add --warn-shared-textrel. * layout.cc (Layout::finish_dynamic_section): Implement --warn-shared-textrel.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 018ec1b..110b91f 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -968,6 +968,10 @@ class General_options
N_("Warn when skipping an incompatible library"),
N_("Don't warn when skipping an incompatible library"));
+ DEFINE_bool(warn_shared_textrel, options::TWO_DASHES, '\0', false,
+ N_("Warn if text segment is not shareable"),
+ N_("Do not warn if text segment is not shareable (default)"));
+
DEFINE_bool(whole_archive, options::TWO_DASHES, '\0', false,
N_("Include all archive contents"),
N_("Include only needed archive contents"));