aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2012-04-20 22:23:47 +0000
committerDavid S. Miller <davem@redhat.com>2012-04-20 22:23:47 +0000
commit7ebeff7f3a3a5974cb4ef10b15de072a5e0f5f1d (patch)
tree3649ff3cff705b99bb36ebc1f1b956eb8bcae67b /gold
parent38ea300a20224b953f2102a8ab1ffb5cef49b480 (diff)
downloadgdb-7ebeff7f3a3a5974cb4ef10b15de072a5e0f5f1d.zip
gdb-7ebeff7f3a3a5974cb4ef10b15de072a5e0f5f1d.tar.gz
gdb-7ebeff7f3a3a5974cb4ef10b15de072a5e0f5f1d.tar.bz2
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')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/target.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 363f368..7706aa4 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-20 David S. Miller <davem@davemloft.net>
+
+ * target.cc (Sized_target::do_adjust_elf_header): Use big_endian
+ instead of false.
+
2012-04-16 David S. Miller <davem@davemloft.net>
* sparc.cc (Target_sparc::got_address): New function.
diff --git a/gold/target.cc b/gold/target.cc
index 091f9d3..a47d74f 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);
}
}