aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-07-11 21:30:56 +0000
committerCary Coutant <ccoutant@google.com>2013-07-11 21:30:56 +0000
commit4d5effb90d5c2334b9147b5eb60c64bb3966b386 (patch)
treeb2e7b6408bf7af2bf630b93492d0699c09740d11
parentcf0063592da7c1a86749c717a32d6ba2880e4bab (diff)
downloadgdb-4d5effb90d5c2334b9147b5eb60c64bb3966b386.zip
gdb-4d5effb90d5c2334b9147b5eb60c64bb3966b386.tar.gz
gdb-4d5effb90d5c2334b9147b5eb60c64bb3966b386.tar.bz2
gold/
* powerpc.cc (Target_powerpc::write_branch_lookup_table): Use correct BRLT entry size.
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/powerpc.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 3373715..0322e03 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-11 Cary Coutant <ccoutant@google.com>
+
+ * powerpc.cc (Target_powerpc::write_branch_lookup_table): Use
+ correct BRLT entry size.
+
2013-07-03 Alan Modra <amodra@gmail.com>
* powerpc.cc (Target_powerpc::Relocate::relocate): Update self-call
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index 0653ea7..7d383f7 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -735,7 +735,7 @@ class Target_powerpc : public Sized_target<size, big_endian>
p != this->branch_lookup_table_.end();
++p)
{
- elfcpp::Swap<32, big_endian>::writeval(oview + p->second, p->first);
+ elfcpp::Swap<size, big_endian>::writeval(oview + p->second, p->first);
}
}