aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-07 18:16:24 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-07 18:16:24 +0000
commitffeef7dfa55fe9608a46a991ce5413fe0db844f4 (patch)
tree468519c017f56d376bad9da8498abb1288aa11cd /gold/options.h
parentb7cd1872af07e11e50368d40505ef8b57e192bcc (diff)
downloadgdb-ffeef7dfa55fe9608a46a991ce5413fe0db844f4.zip
gdb-ffeef7dfa55fe9608a46a991ce5413fe0db844f4.tar.gz
gdb-ffeef7dfa55fe9608a46a991ce5413fe0db844f4.tar.bz2
* options.h (class General_options): Add -z text and -z textoff.
* layout.cc (Layout::finish_dynamic_section): Implement -z text.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 110b91f..de1f07a 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1052,6 +1052,12 @@ class General_options
DEFINE_bool(relro, options::DASH_Z, '\0', false,
N_("Where possible mark variables read-only after relocation"),
N_("Don't mark variables read-only after relocation"));
+ DEFINE_bool(text, options::DASH_Z, '\0', false,
+ N_("Do not permit relocations in read-only segments"),
+ NULL);
+ DEFINE_bool_alias(textoff, text, options::DASH_Z, '\0',
+ N_("Permit relocations in read-only segments (default)"),
+ NULL, true);
public:
typedef options::Dir_list Dir_list;