This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[GOLD] fix powerpc internal error linking libjava
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 10 Dec 2012 22:01:03 +1030
- Subject: [GOLD] fix powerpc internal error linking libjava
Fixes a couple of silly errors.
* powerpc.cc (Powerpc_relobj::Powerpc_relobj): Init has14_ and
stub_table_.
(Target_powerpc::Branch_info::make_stub): Don't omit addend.
Index: gold/powerpc.cc
===================================================================
RCS file: /cvs/src/src/gold/powerpc.cc,v
retrieving revision 1.76
diff -u -p -r1.76 powerpc.cc
--- gold/powerpc.cc 7 Dec 2012 04:23:36 -0000 1.76
+++ gold/powerpc.cc 10 Dec 2012 11:25:30 -0000
@@ -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
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);
--
Alan Modra
Australia Development Lab, IBM