From: David S. Miller Date: Fri, 20 Apr 2012 22:23:47 +0000 (+0000) Subject: gold: Fix parameterization of do_adjust_elf_header X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ebeff7f3a3a5974cb4ef10b15de072a5e0f5f1d;p=binutils-gdb.git gold: Fix parameterization of do_adjust_elf_header gold/ * target.cc (Sized_target::do_adjust_elf_header): Use big_endian instead of false. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 363f368939b..7706aa4e30f 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2012-04-20 David S. Miller + + * target.cc (Sized_target::do_adjust_elf_header): Use big_endian + instead of false. + 2012-04-16 David S. Miller * sparc.cc (Target_sparc::got_address): New function. diff --git a/gold/target.cc b/gold/target.cc index 091f9d34cd5..a47d74fe1a0 100644 --- a/gold/target.cc +++ b/gold/target.cc @@ -217,13 +217,13 @@ Sized_target::do_adjust_elf_header(unsigned char* view, { gold_assert(len == elfcpp::Elf_sizes::ehdr_size); - elfcpp::Ehdr ehdr(view); + elfcpp::Ehdr ehdr(view); unsigned char e_ident[elfcpp::EI_NIDENT]; memcpy(e_ident, ehdr.get_e_ident(), elfcpp::EI_NIDENT); e_ident[elfcpp::EI_OSABI] = osabi; - elfcpp::Ehdr_write oehdr(view); + elfcpp::Ehdr_write oehdr(view); oehdr.put_e_ident(e_ident); } }