aboutsummaryrefslogtreecommitdiff
path: root/gold/sparc.cc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-10-11 22:02:21 +0000
committerRoland McGrath <roland@gnu.org>2013-10-11 22:02:21 +0000
commitcc84c10bfe2f4661a1485a5c79aec6dfb1d4e270 (patch)
treea2e826da0e597a8ac28d9e941cb50056a788578a /gold/sparc.cc
parent52f66a2c4d1200cac1e57c1a38f95c8485e9a72d (diff)
downloadgdb-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/sparc.cc')
-rw-r--r--gold/sparc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/sparc.cc b/gold/sparc.cc
index 57659cc..cbe95b8 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -217,7 +217,7 @@ class Target_sparc : public Sized_target<size, big_endian>
const elfcpp::Ehdr<size, big_endian>& ehdr);
void
- do_adjust_elf_header(unsigned char* view, int len) const;
+ do_adjust_elf_header(unsigned char* view, int len);
private:
@@ -4339,7 +4339,7 @@ template<int size, bool big_endian>
void
Target_sparc<size, big_endian>::do_adjust_elf_header(
unsigned char* view,
- int len) const
+ int len)
{
elfcpp::Ehdr_write<size, big_endian> oehdr(view);