gold: Fix parameterization of do_adjust_elf_header
authorDavid S. Miller <davem@redhat.com>
Fri, 20 Apr 2012 22:23:47 +0000 (22:23 +0000)
committerDavid S. Miller <davem@redhat.com>
Fri, 20 Apr 2012 22:23:47 +0000 (22:23 +0000)
gold/

* target.cc (Sized_target::do_adjust_elf_header): Use big_endian
instead of false.

gold/ChangeLog
gold/target.cc

index 363f368939b160f71c4d2054143aacaf4a55e41f..7706aa4e30fe39eb32c96332f5830d9530764745 100644 (file)
@@ -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.
index 091f9d34cd5521ee08ef1e17722570deba5122b3..a47d74fe1a0ab16bd109e4933f4a7019e8e2f70b 100644 (file)
@@ -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);
     }
 }