[GOLD] Re: PowerPC64: Don't pretend to support multi-toc
authorAlan Modra <amodra@gmail.com>
Thu, 14 Oct 2021 06:31:06 +0000 (17:01 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 14 Oct 2021 09:32:32 +0000 (20:02 +1030)
commita1251fdcb58f99644c49b65d72507706f2d40200
tree81a69e716f5af0f331085d38728cd69cc5d8e333
parentf19c3684a6db145f57048bff5485fec6e3dd0f76
[GOLD] Re: PowerPC64: Don't pretend to support multi-toc

We can't get at section->address() until everything is laid out, so
trying to generalise the offset calculation rather than using a value
of 0x8000 (the old object->toc_base_offset()) was bound to fail.
got->g_o_t() is a little better than a hard-coded 0x8000.

* powerpc.cc (Target_powerpc::Scan::local, global): Don't use
toc_pointer() here.
gold/powerpc.cc