aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.h
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.h
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.h')
-rw-r--r--gold/parameters.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gold/parameters.h b/gold/parameters.h
index 3bf6c50..136fd35 100644
--- a/gold/parameters.h
+++ b/gold/parameters.h
@@ -230,6 +230,22 @@ class Parameters
return this->is_big_endian_;
}
+ // The maximum page size
+ uint64_t
+ max_page_size() const
+ {
+ gold_assert(this->is_target_valid_);
+ return this->max_page_size_;
+ }
+
+ // The common page size
+ uint64_t
+ common_page_size() const
+ {
+ gold_assert(this->is_target_valid_);
+ return this->common_page_size_;
+ }
+
// Set values recorded from options.
void
set_from_options(const General_options*);
@@ -313,6 +329,9 @@ class Parameters
int size_;
// Whether the output file is big endian.
bool is_big_endian_;
+ // The maximum page size and common page size
+ int max_page_size_;
+ int common_page_size_;
};
// This is a global variable.