aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-26 22:10:32 +0000
committerIan Lance Taylor <iant@google.com>2008-02-26 22:10:32 +0000
commitcd72c291808dbf72aad1603f3c60cd72de62c8f8 (patch)
tree5d4a74840823d0d0ec9cf10d01bf13d4d2fa17cb /gold/parameters.cc
parent45aa233bdcc27243a2b3e2c699ad0ab59f83901b (diff)
downloadgdb-cd72c291808dbf72aad1603f3c60cd72de62c8f8.zip
gdb-cd72c291808dbf72aad1603f3c60cd72de62c8f8.tar.gz
gdb-cd72c291808dbf72aad1603f3c60cd72de62c8f8.tar.bz2
From Craig Silverstein: implement -z max-page-size and -z
common-page-size.
Diffstat (limited to 'gold/parameters.cc')
-rw-r--r--gold/parameters.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/parameters.cc b/gold/parameters.cc
index 5723b80..a53908f 100644
--- a/gold/parameters.cc
+++ b/gold/parameters.cc
@@ -38,7 +38,8 @@ Parameters::Parameters(Errors* errors)
symbolic_(false), demangle_(false), detect_odr_violations_(false),
optimization_level_(0), export_dynamic_(false), debug_(0),
is_doing_static_link_valid_(false), doing_static_link_(false),
- is_target_valid_(false), target_(NULL)
+ is_target_valid_(false), target_(NULL), size_(0), is_big_endian_(false),
+ max_page_size_(0), common_page_size_(0)
{
}
@@ -74,6 +75,9 @@ Parameters::set_from_options(const General_options* options)
else
this->strip_ = STRIP_NONE;
+ this->max_page_size_ = options->max_page_size();
+ this->common_page_size_ = options->common_page_size();
+
this->options_valid_ = true;
}