* elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct
byte order.
This commit is contained in:
parent
cf65847e18
commit
15fb9978c9
@ -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>
|
2008-03-24 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
* elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
|
* elfcpp.h (NT_VERSION, NT_ARCH): Define as enum constants.
|
||||||
|
@ -367,14 +367,14 @@ struct Swap_unaligned<64, true>
|
|||||||
static inline void
|
static inline void
|
||||||
writeval(unsigned char* wv, Valtype v)
|
writeval(unsigned char* wv, Valtype v)
|
||||||
{
|
{
|
||||||
wv[7] = v >> 56;
|
wv[0] = v >> 56;
|
||||||
wv[6] = v >> 48;
|
wv[1] = v >> 48;
|
||||||
wv[5] = v >> 40;
|
wv[2] = v >> 40;
|
||||||
wv[4] = v >> 32;
|
wv[3] = v >> 32;
|
||||||
wv[3] = v >> 24;
|
wv[4] = v >> 24;
|
||||||
wv[2] = v >> 16;
|
wv[5] = v >> 16;
|
||||||
wv[1] = v >> 8;
|
wv[6] = v >> 8;
|
||||||
wv[0] = v;
|
wv[7] = v;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user