aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-07-19 23:07:08 +0000
committerRoland McGrath <roland@gnu.org>2013-07-19 23:07:08 +0000
commita3ed37d8bcb97329ff3acebba63c754d153d3363 (patch)
tree5808e3e5905998fac75b21690ff89878e316c35c /gold/options.h
parent69091a2cc4cfdd51d5b63c2925ab50ba6aa094cf (diff)
downloadfsf-binutils-gdb-a3ed37d8bcb97329ff3acebba63c754d153d3363.zip
fsf-binutils-gdb-a3ed37d8bcb97329ff3acebba63c754d153d3363.tar.gz
fsf-binutils-gdb-a3ed37d8bcb97329ff3acebba63c754d153d3363.tar.bz2
gold/
* options.h (General_options): Add -Trodata-segment option. * parameters.cc (Parameters::check_rodata_segment): New function. (Parameters::set_target_once): Call it. * parameters.h (Parameters): Declare it (private member function). * layout.cc (load_seg_unusable_for_headers): New function, broken out of Layout::relaxation_loop_body. If TARGET->isolate_execinstr() then validate rodata segment rather than text segment. (relaxation_loop_body): Call that. (is_text_segment): New function. Don't admit a non-executable segment if TARGET->isolate_execinstr(). (set_segment_offsets): Call it. Honor -Trodata-segment option.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 052e382..a2f5a88 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1162,6 +1162,8 @@ class General_options
DEFINE_uint64_alias(Ttext_segment, Ttext, options::ONE_DASH, '\0',
N_("Set the address of the text segment"),
N_("ADDRESS"));
+ DEFINE_uint64(Trodata_segment, options::ONE_DASH, '\0', -1U,
+ N_("Set the address of the rodata segment"), N_("ADDRESS"));
DEFINE_bool(toc_optimize, options::TWO_DASHES, '\0', true,
N_("(PowerPC64 only) Optimize TOC code sequences"),