aboutsummaryrefslogtreecommitdiff
path: root/gold/target.h
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/target.h
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/target.h')
-rw-r--r--gold/target.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/target.h b/gold/target.h
index 4c58d10..415b7ed 100644
--- a/gold/target.h
+++ b/gold/target.h
@@ -1,6 +1,6 @@
// target.h -- target support for gold -*- C++ -*-
-// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012
+// Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
// Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
@@ -238,7 +238,7 @@ class Target
// Adjust the output file header before it is written out. VIEW
// points to the header in external form. LEN is the length.
void
- adjust_elf_header(unsigned char* view, int len) const
+ adjust_elf_header(unsigned char* view, int len)
{ return this->do_adjust_elf_header(view, len); }
// Return address and size to plug into eh_frame FDEs associated with a PLT.
@@ -548,7 +548,7 @@ class Target
// By default, we set the EI_OSABI field if requested (in
// Sized_target).
virtual void
- do_adjust_elf_header(unsigned char*, int) const = 0;
+ do_adjust_elf_header(unsigned char*, int) = 0;
// Return address and size to plug into eh_frame FDEs associated with a PLT.
virtual void
@@ -1018,7 +1018,7 @@ class Sized_target : public Target
// Set the EI_OSABI field if requested.
virtual void
- do_adjust_elf_header(unsigned char*, int) const;
+ do_adjust_elf_header(unsigned char*, int);
// Handle target specific gc actions when adding a gc reference.
virtual void