summaryrefslogtreecommitdiff
path: root/gold/target.cc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2012-04-20 22:23:46 +0000
committerDavid S. Miller <davem@redhat.com>2012-04-20 22:23:46 +0000
commitb24ac09632a10899a51150020e3eb37a1233289d (patch)
treee175f66a1e9d58f0fcd34635cc1e0992a9b53333 /gold/target.cc
parentd4dec3483054c9053c2fa8bb48357e74d8ec4e4c (diff)
downloadbinutils-redhat-b24ac09632a10899a51150020e3eb37a1233289d.tar.gz
gold: Fix parameterization of do_adjust_elf_header
gold/ * target.cc (Sized_target::do_adjust_elf_header): Use big_endian instead of false.
Diffstat (limited to 'gold/target.cc')
-rw-r--r--gold/target.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/target.cc b/gold/target.cc
index 091f9d34cd..a47d74fe1a 100644
--- a/gold/target.cc
+++ b/gold/target.cc
@@ -217,13 +217,13 @@ Sized_target<size, big_endian>::do_adjust_elf_header(unsigned char* view,
{
gold_assert(len == elfcpp::Elf_sizes<size>::ehdr_size);
- elfcpp::Ehdr<size, false> ehdr(view);
+ elfcpp::Ehdr<size, big_endian> 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<size, false> oehdr(view);
+ elfcpp::Ehdr_write<size, big_endian> oehdr(view);
oehdr.put_e_ident(e_ident);
}
}