mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
* output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.
(Output_fill_debug_line::do_write): Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-09-09 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.
|
||||||
|
(Output_fill_debug_line::do_write): Likewise.
|
||||||
|
|
||||||
2011-08-29 Cary Coutant <ccoutant@google.com>
|
2011-08-29 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
* output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
|
* output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
|
||||||
|
@ -1961,15 +1961,15 @@ Output_fill_debug_info::do_write(Output_file* of, off_t off, size_t len) const
|
|||||||
// address_size.
|
// address_size.
|
||||||
if (this->is_big_endian())
|
if (this->is_big_endian())
|
||||||
{
|
{
|
||||||
elfcpp::Swap<32, true>::writeval(pov, len - 4);
|
elfcpp::Swap_unaligned<32, true>::writeval(pov, len - 4);
|
||||||
elfcpp::Swap<16, true>::writeval(pov + 4, this->version);
|
elfcpp::Swap_unaligned<16, true>::writeval(pov + 4, this->version);
|
||||||
elfcpp::Swap<32, true>::writeval(pov + 6, 0);
|
elfcpp::Swap_unaligned<32, true>::writeval(pov + 6, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
elfcpp::Swap<32, false>::writeval(pov, len - 4);
|
elfcpp::Swap_unaligned<32, false>::writeval(pov, len - 4);
|
||||||
elfcpp::Swap<16, false>::writeval(pov + 4, this->version);
|
elfcpp::Swap_unaligned<16, false>::writeval(pov + 4, this->version);
|
||||||
elfcpp::Swap<32, false>::writeval(pov + 6, 0);
|
elfcpp::Swap_unaligned<32, false>::writeval(pov + 6, 0);
|
||||||
}
|
}
|
||||||
pov += 4 + 2 + 4;
|
pov += 4 + 2 + 4;
|
||||||
*pov++ = 4;
|
*pov++ = 4;
|
||||||
@ -2021,15 +2021,15 @@ Output_fill_debug_line::do_write(Output_file* of, off_t off, size_t len) const
|
|||||||
// line number program is empty.
|
// line number program is empty.
|
||||||
if (this->is_big_endian())
|
if (this->is_big_endian())
|
||||||
{
|
{
|
||||||
elfcpp::Swap<32, true>::writeval(pov, len - 4);
|
elfcpp::Swap_unaligned<32, true>::writeval(pov, len - 4);
|
||||||
elfcpp::Swap<16, true>::writeval(pov + 4, this->version);
|
elfcpp::Swap_unaligned<16, true>::writeval(pov + 4, this->version);
|
||||||
elfcpp::Swap<32, true>::writeval(pov + 6, len - (4 + 2 + 4));
|
elfcpp::Swap_unaligned<32, true>::writeval(pov + 6, len - (4 + 2 + 4));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
elfcpp::Swap<32, false>::writeval(pov, len - 4);
|
elfcpp::Swap_unaligned<32, false>::writeval(pov, len - 4);
|
||||||
elfcpp::Swap<16, false>::writeval(pov + 4, this->version);
|
elfcpp::Swap_unaligned<16, false>::writeval(pov + 4, this->version);
|
||||||
elfcpp::Swap<32, false>::writeval(pov + 6, len - (4 + 2 + 4));
|
elfcpp::Swap_unaligned<32, false>::writeval(pov + 6, len - (4 + 2 + 4));
|
||||||
}
|
}
|
||||||
pov += 4 + 2 + 4;
|
pov += 4 + 2 + 4;
|
||||||
*pov++ = 1; // minimum_instruction_length
|
*pov++ = 1; // minimum_instruction_length
|
||||||
|
Reference in New Issue
Block a user