diff options
author | Cary Coutant <ccoutant@google.com> | 2012-04-23 23:31:15 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-04-23 23:31:15 +0000 |
commit | 1d509098948ff183c755c2353f8822dc0f046f57 (patch) | |
tree | 8d22a80da4107574cf0d75eddc03fe8643715f24 /gold/gdb-index.cc | |
parent | 34431a2aa1e9e1a2fc255619985103494ae2f90d (diff) | |
download | gdb-1d509098948ff183c755c2353f8822dc0f046f57.zip gdb-1d509098948ff183c755c2353f8822dc0f046f57.tar.gz gdb-1d509098948ff183c755c2353f8822dc0f046f57.tar.bz2 |
elfcpp/
* elfcpp_swap.h (struct Swap_aligned32): New template.
gold/
* gdb-index.cc (Gdb_index::do_write): Use Swap_aligned32 for writing
CU range table of gdb index.
Diffstat (limited to 'gold/gdb-index.cc')
-rw-r--r-- | gold/gdb-index.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/gdb-index.cc b/gold/gdb-index.cc index 07ba2ab..a6db505 100644 --- a/gold/gdb-index.cc +++ b/gold/gdb-index.cc @@ -1166,8 +1166,9 @@ Gdb_index::do_write(Output_file* of) base = (os->address() + object->output_section_offset(range.shndx)); } - elfcpp::Swap_unaligned<64, false>::writeval(pov, base + range.start); - elfcpp::Swap_unaligned<64, false>::writeval(pov + 8, base + range.end); + elfcpp::Swap_aligned32<64, false>::writeval(pov, base + range.start); + elfcpp::Swap_aligned32<64, false>::writeval(pov + 8, + base + range.end); elfcpp::Swap<32, false>::writeval(pov + 16, cu_index); pov += 20; } |