aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-13 22:47:28 +0000
committerIan Lance Taylor <iant@google.com>2008-02-13 22:47:28 +0000
commit756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba (patch)
tree760861f58d6eac92959589049c0348bb24fc1790 /gold/options.cc
parent3edc73f245b7f714af35f98ccc69212358d7a594 (diff)
downloadgdb-756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba.zip
gdb-756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba.tar.gz
gdb-756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba.tar.bz2
Implement -Tdata and -Tbss.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/gold/options.cc b/gold/options.cc
index db655a2..4d8f0b9 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -541,10 +541,17 @@ options::Command_line_options::options[] =
NULL, TWO_DASHES, &General_options::set_stats),
GENERAL_ARG('\0', "sysroot", N_("Set target system root directory"),
N_("--sysroot DIR"), TWO_DASHES, &General_options::set_sysroot),
- GENERAL_ARG('\0', "Ttext", N_("Set the address of the .text section"),
+ GENERAL_ARG('\0', "Tbss", N_("Set the address of the bss segment"),
+ N_("-Tbss ADDRESS"), ONE_DASH,
+ &General_options::set_bss_segment_address),
+ GENERAL_ARG('\0', "Tdata", N_("Set the address of the data segment"),
+ N_("-Tdata ADDRESS"), ONE_DASH,
+ &General_options::set_data_segment_address),
+ GENERAL_ARG('\0', "Ttext", N_("Set the address of the text segment"),
N_("-Ttext ADDRESS"), ONE_DASH,
&General_options::set_text_segment_address),
- // This must come after -Ttext since it's a prefix of it.
+ // This must come after -Ttext and friends since it's a prefix of
+ // them.
SPECIAL('T', "script", N_("Read linker script"),
N_("-T FILE, --script FILE"), TWO_DASHES,
&invoke_script),
@@ -651,7 +658,9 @@ General_options::General_options(Script_options* script_options)
is_static_(false),
print_stats_(false),
sysroot_(),
- text_segment_address_(-1U), // -1 indicates value not set by user
+ bss_segment_address_(-1U), // -1 indicates value not set by user
+ data_segment_address_(-1U),
+ text_segment_address_(-1U),
threads_(false),
thread_count_initial_(0),
thread_count_middle_(0),