]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
* elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct
authorIan Lance Taylor <ian@airs.com>
Thu, 3 Apr 2008 23:33:20 +0000 (23:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 3 Apr 2008 23:33:20 +0000 (23:33 +0000)
byte order.

elfcpp/ChangeLog
elfcpp/elfcpp_swap.h

index a35c6ef74aa7627842e0fd0b7fe32393186cca71..4c22bfd9a9ca08c55b5550b679f984faf73b4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-03  Ian Lance Taylor  <iant@google.com>
+
+       * elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct
+       byte order.
+
 2008-03-24  Ian Lance Taylor  <iant@google.com>
 
        * elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
index 329ed163831af55aef3767164b80ec74c51d9923..9f445dc69ab33a48a65b8ab67ef9403a2faf9157 100644 (file)
@@ -367,14 +367,14 @@ struct Swap_unaligned<64, true>
   static inline void
   writeval(unsigned char* wv, Valtype v)
   {
-    wv[7] = v >> 56;
-    wv[6] = v >> 48;
-    wv[5] = v >> 40;
-    wv[4] = v >> 32;
-    wv[3] = v >> 24;
-    wv[2] = v >> 16;
-    wv[1] = v >> 8;
-    wv[0] = v;
+    wv[0] = v >> 56;
+    wv[1] = v >> 48;
+    wv[2] = v >> 40;
+    wv[3] = v >> 32;
+    wv[4] = v >> 24;
+    wv[5] = v >> 16;
+    wv[6] = v >> 8;
+    wv[7] = v;
   }
 };