[GOLD] PowerPC tweak relnum tests
authorAlan Modra <amodra@gmail.com>
Fri, 28 Jun 2019 00:48:03 +0000 (10:18 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Jun 2019 00:48:03 +0000 (10:18 +0930)
commitf60c61e60e59c2bfc5fdd1b448408c2af287899e
tree4e768737ff28498934c79746fdd25f3cebaf2f66
parentf073a3e8c6735bd8fc24d35a957d8944087ea367
[GOLD] PowerPC tweak relnum tests

There is a call of relocate() to perform a single relocation.  In that
case the "relnum" parameter is -1U and of course it isn't appropriate
to consider any of the PowerPC code sequence optimisations triggered
by a following relocation.

* powerpc.cc (Target_powerpc::Relocate::relocate): Don't look
at next/previous reloc when relnum is -1.
gold/ChangeLog
gold/powerpc.cc