mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* powerpc.cc (Powerpc_relobj::Powerpc_relobj): Init has14_ and
stub_table_. (Target_powerpc::Branch_info::make_stub): Don't omit addend.
This commit is contained in:
@ -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>
|
2012-12-07 Roland McGrath <mcgrathr@google.com>
|
||||||
|
|
||||||
* testsuite/binary_unittest.cc (Sized_binary_test):
|
* testsuite/binary_unittest.cc (Sized_binary_test):
|
||||||
|
@ -71,7 +71,8 @@ public:
|
|||||||
Powerpc_relobj(const std::string& name, Input_file* input_file, off_t offset,
|
Powerpc_relobj(const std::string& name, Input_file* input_file, off_t offset,
|
||||||
const typename elfcpp::Ehdr<size, big_endian>& ehdr)
|
const typename elfcpp::Ehdr<size, big_endian>& ehdr)
|
||||||
: Sized_relobj_file<size, big_endian>(name, input_file, offset, 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()
|
~Powerpc_relobj()
|
||||||
@ -2067,6 +2068,7 @@ Target_powerpc<size, big_endian>::Branch_info::make_stub(
|
|||||||
return;
|
return;
|
||||||
to = symval.value(this->object_, 0);
|
to = symval.value(this->object_, 0);
|
||||||
}
|
}
|
||||||
|
to += this->addend_;
|
||||||
if (stub_table == NULL)
|
if (stub_table == NULL)
|
||||||
stub_table = this->object_->stub_table(this->shndx_);
|
stub_table = this->object_->stub_table(this->shndx_);
|
||||||
gold_assert(stub_table != NULL);
|
gold_assert(stub_table != NULL);
|
||||||
|
Reference in New Issue
Block a user