aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-04-23 23:31:15 +0000
committerCary Coutant <ccoutant@google.com>2012-04-23 23:31:15 +0000
commit1d509098948ff183c755c2353f8822dc0f046f57 (patch)
tree8d22a80da4107574cf0d75eddc03fe8643715f24 /gold
parent34431a2aa1e9e1a2fc255619985103494ae2f90d (diff)
downloadgdb-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')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/gdb-index.cc5
2 files changed, 8 insertions, 2 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 7706aa4..b3e6f7c 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-23 Cary Coutant <ccoutant@google.com>
+
+ * gdb-index.cc (Gdb_index::do_write): Use Swap_aligned32 for writing
+ CU range table of gdb index.
+
2012-04-20 David S. Miller <davem@davemloft.net>
* target.cc (Sized_target::do_adjust_elf_header): Use big_endian
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;
}