mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
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().
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user