[GOLD] Fix powerpc64 optimization of TOC accesses
authorAlan Modra <amodra@gmail.com>
Tue, 17 Oct 2017 14:03:05 +0000 (00:33 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 17 Oct 2017 22:18:17 +0000 (08:48 +1030)
commit412294daf8786fd9060059b8be7fc59a35e13922
treeb0ef87097949a968802b21138b941cec294db288
parentb27de576d41eed16936cf639857df4e1e27a8e9e
[GOLD] Fix powerpc64 optimization of TOC accesses

Fixes a thinko.  Given code that puts variables into the TOC (a bad
idea, but some see the TOC as a small data section) this bug could
result in an attempt to optimize a sequence that should not be
optimized.

* powerpc.cc (Target_powerpc::Scan::local): Correct dst_off
calculation for TOC16 relocs.
(Target_powerpc::Scan::global): Likewise.
gold/ChangeLog
gold/powerpc.cc
This page took 0.025328 seconds and 4 git commands to generate.