aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-12-10 11:30:57 +0000
committerAlan Modra <amodra@gmail.com>2012-12-10 11:30:57 +0000
commit906b9150c78e8d6c884b848c61a954a81f92fbed (patch)
tree50edebd9ab256c67ed72ce447fdd3975c7000174 /gold
parent995ef4dd00468c1648f4e8341b4ff692c3ae58e0 (diff)
downloadfsf-binutils-gdb-906b9150c78e8d6c884b848c61a954a81f92fbed.zip
fsf-binutils-gdb-906b9150c78e8d6c884b848c61a954a81f92fbed.tar.gz
fsf-binutils-gdb-906b9150c78e8d6c884b848c61a954a81f92fbed.tar.bz2
* powerpc.cc (Powerpc_relobj::Powerpc_relobj): Init has14_ and
stub_table_. (Target_powerpc::Branch_info::make_stub): Don't omit addend.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog6
-rw-r--r--gold/powerpc.cc4
2 files changed, 9 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 4ccde16..6db642c 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-10 Alan Modra <amodra@gmail.com>
+
+ * powerpc.cc (Powerpc_relobj::Powerpc_relobj): Init has14_ and
+ stub_table_.
+ (Target_powerpc::Branch_info::make_stub): Don't omit addend.
+
2012-12-07 Roland McGrath <mcgrathr@google.com>
* testsuite/binary_unittest.cc (Sized_binary_test):
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index 3d54577..896e8ab 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -71,7 +71,8 @@ public:
Powerpc_relobj(const std::string& name, Input_file* input_file, off_t offset,
const typename elfcpp::Ehdr<size, big_endian>& ehdr)
: Sized_relobj_file<size, big_endian>(name, input_file, offset, ehdr),
- special_(0), opd_valid_(false), opd_ent_(), access_from_map_()
+ special_(0), opd_valid_(false),
+ opd_ent_(), access_from_map_(), has14_(), stub_table_()
{ }
~Powerpc_relobj()
@@ -2067,6 +2068,7 @@ Target_powerpc<size, big_endian>::Branch_info::make_stub(
return;
to = symval.value(this->object_, 0);
}
+ to += this->addend_;
if (stub_table == NULL)
stub_table = this->object_->stub_table(this->shndx_);
gold_assert(stub_table != NULL);