diff options
author | Roland McGrath <roland@gnu.org> | 2013-08-27 21:49:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2013-08-27 21:49:48 +0000 |
commit | eb426534c3f150e77ebceba75facd2f49441d2fd (patch) | |
tree | aaed32893651907607db05012db5d6b772d596de /gold/output.h | |
parent | 69d751e3c12a127ed2313a94690081f9f813316c (diff) | |
download | gdb-eb426534c3f150e77ebceba75facd2f49441d2fd.zip gdb-eb426534c3f150e77ebceba75facd2f49441d2fd.tar.gz gdb-eb426534c3f150e77ebceba75facd2f49441d2fd.tar.bz2 |
gold/
* output.cc (Output_segment::set_section_addresses): Take new
Target* argument. If target->isolate_execinstr() and the segment
is executable and starts at a target->abi_pagesize() boundary,
pad its end out to a target->abi_pagesize() boundary with code fill.
* output.h (Output_segment::set_section_addresses): Update decl.
* layout.h (Layout::check_output_data_for_reset_values): Take new
argument RELAX_OUTPUTS.
(Layout): New member relax_output_list_.
(Layout::add_relax_output): New method.
* layout.cc (Layout::Layout): Update constructor.
(Layout::reset_relax_output): New method.
(Layout::clean_up_after_relaxation): Call it.
(Layout::prepare_for_relaxation): Update caller.
(Layout::set_segment_offsets): Update callers of set_section_addresses.
Call reset_relax_output before re-processing segments for
isolate_execinstr case.
(Layout::write_data): Handle relax_output_list_.
(Layout::Relaxation_debug_check::check_output_data_for_reset_values):
Take new argument RELAX_OUTPUTS. Assert it's an empty collection.
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/output.h b/gold/output.h index 1bcdfea..f5a7299 100644 --- a/gold/output.h +++ b/gold/output.h @@ -1,6 +1,7 @@ // output.h -- manage the output file for gold -*- C++ -*- -// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. +// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013 +// Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. @@ -4596,7 +4597,7 @@ class Output_segment // address of the immediately following segment. Update *POFF and // *PSHNDX. This should only be called for a PT_LOAD segment. uint64_t - set_section_addresses(Layout*, bool reset, uint64_t addr, + set_section_addresses(const Target*, Layout*, bool reset, uint64_t addr, unsigned int* increase_relro, bool* has_relro, off_t* poff, unsigned int* pshndx); |