diff options
author | Roland McGrath <roland@gnu.org> | 2013-10-11 22:02:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2013-10-11 22:02:21 +0000 |
commit | cc84c10bfe2f4661a1485a5c79aec6dfb1d4e270 (patch) | |
tree | a2e826da0e597a8ac28d9e941cb50056a788578a /gold/output.cc | |
parent | 52f66a2c4d1200cac1e57c1a38f95c8485e9a72d (diff) | |
download | gdb-cc84c10bfe2f4661a1485a5c79aec6dfb1d4e270.zip gdb-cc84c10bfe2f4661a1485a5c79aec6dfb1d4e270.tar.gz gdb-cc84c10bfe2f4661a1485a5c79aec6dfb1d4e270.tar.bz2 |
gold/
* target.h (Target::adjust_elf_header, Target::do_adjust_elf_header):
Remove const from declaration.
* target.cc (Sized_target::do_adjust_elf_header): Update definition.
* sparc.cc (Target_sparc::do_adjust_elf_header): Likewise.
* output.h (Output_file_header): Remove const from member target_
and corresponding constructor argument.
* output.cc (Output_file_header::Output_file_header): Update prototype.
(Output_file_header::do_sized_write): Use this->target_ in place
of parameters()->target().
Diffstat (limited to 'gold/output.cc')
-rw-r--r-- | gold/output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/output.cc b/gold/output.cc index a5ff988..348ad64 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -435,7 +435,7 @@ Output_segment_headers::do_size() const // Output_file_header methods. -Output_file_header::Output_file_header(const Target* target, +Output_file_header::Output_file_header(Target* target, const Symbol_table* symtab, const Output_segment_headers* osh) : target_(target), @@ -577,7 +577,7 @@ Output_file_header::do_sized_write(Output_file* of) // Let the target adjust the ELF header, e.g., to set EI_OSABI in // the e_ident field. - parameters->target().adjust_elf_header(view, ehdr_size); + this->target_->adjust_elf_header(view, ehdr_size); of->write_output_view(0, ehdr_size, view); } |