diff options
author | Alan Modra <amodra@gmail.com> | 2012-09-10 23:10:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-09-10 23:10:41 +0000 |
commit | 815a120572fd0025c606dbb0b7ab5d137d07d036 (patch) | |
tree | e19cbdce076c9e977eb83d8ca5132dd115907008 /gold/output.cc | |
parent | bd73a62d774b7c9a77be60ccfc4ff0dd7641970f (diff) | |
download | gdb-815a120572fd0025c606dbb0b7ab5d137d07d036.zip gdb-815a120572fd0025c606dbb0b7ab5d137d07d036.tar.gz gdb-815a120572fd0025c606dbb0b7ab5d137d07d036.tar.bz2 |
PR gold/14566
* layout.cc (Layout::set_segment_offsets): When using
common-page-size alignment, ensure we are on a new max-page-size
page.
* output.cc (Output_segment::set_section_addresses): Use
abi_pagesize, not common_pagesize for relro boundary.
(Output_segment::set_offset): Likewise.
Diffstat (limited to 'gold/output.cc')
-rw-r--r-- | gold/output.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/output.cc b/gold/output.cc index d75579b..fa6d808 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -4239,7 +4239,7 @@ Output_segment::set_section_addresses(Layout* layout, bool reset, bool in_tls = false; // If we have relro sections, we need to pad forward now so that the - // relro sections plus INCREASE_RELRO end on a common page boundary. + // relro sections plus INCREASE_RELRO end on an abi page boundary. if (parameters->options().relro() && this->is_first_section_relro() && (!this->are_addresses_set_ || reset)) @@ -4294,7 +4294,7 @@ Output_segment::set_section_addresses(Layout* layout, bool reset, last_relro_pad = aligned_size - relro_size; *has_relro = true; - uint64_t page_align = parameters->target().common_pagesize(); + uint64_t page_align = parameters->target().abi_pagesize(); // Align to offset N such that (N + RELRO_SIZE) % PAGE_ALIGN == 0. uint64_t desired_align = page_align - (aligned_size % page_align); @@ -4604,7 +4604,7 @@ Output_segment::set_offset(unsigned int increase) // page boundary. if (this->type_ == elfcpp::PT_GNU_RELRO) { - uint64_t page_align = parameters->target().common_pagesize(); + uint64_t page_align = parameters->target().abi_pagesize(); uint64_t segment_end = this->vaddr_ + this->memsz_; if (parameters->incremental_update()) { |